Skip to content

[PM-32116] Remove pm-32111-provider-ability-extended-cache logic#7838

Open
JimmyVo16 wants to merge 1 commit into
mainfrom
ac/pm-32116/remove-pm-32111-provider-ability-extended-cache
Open

[PM-32116] Remove pm-32111-provider-ability-extended-cache logic#7838
JimmyVo16 wants to merge 1 commit into
mainfrom
ac/pm-32116/remove-pm-32111-provider-ability-extended-cache

Conversation

@JimmyVo16

@JimmyVo16 JimmyVo16 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-32115
https://bitwarden.atlassian.net/browse/PM-32116

📔 Objective

Remove the feature flag and use the new provider cache in place of IApplicationCacheService.cs.

Automation tests and the build pipeline should be sufficient. No manual testing needed.

@JimmyVo16 JimmyVo16 self-assigned this Jun 18, 2026
@JimmyVo16 JimmyVo16 added the ai-review Request a Claude code review label Jun 18, 2026
@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🤖 Bitwarden Claude Code Review

Overall Assessment: APPROVE

This PR removes the pm-32111-provider-ability-extended-cache feature flag and migrates all consumers (ProviderService, ProvidersController, EventService) from the routed IApplicationCacheService provider-ability methods to IProviderAbilityCacheService directly. The now-unused provider methods were removed from IApplicationCacheService and FeatureRoutedCacheService, and the corresponding flag-routing tests were deleted. I verified there are no dangling flag references, no remaining callers of the removed interface methods, and that IProviderAbilityCacheService is registered unconditionally in both the shared web service collection and Events/Startup, covering all consuming projects.

Code Review Details

No findings. This is a clean, well-scoped feature-flag removal:

  • Flag constant ProviderAbilityExtendedCache removed with no remaining references.
  • All consumers migrated to IProviderAbilityCacheService; the removed GetProviderAbilityAsync/GetProviderAbilitiesAsync(ids)/UpsertProviderAbilityAsync/DeleteProviderAbilityAsync methods on IApplicationCacheService have no remaining callers.
  • DI registration (AddProviderAbilityCache) is unconditional and present in SharedWeb/ServiceCollectionExtensions and Events/Startup, so all consuming projects resolve the dependency.
  • The promoted ExtendedProviderAbilityCacheService was already the flag-enabled path; tests were updated accordingly with no behavioral regression.

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 61.19%. Comparing base (10169e6) to head (a2ff07a).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...in/AdminConsole/Controllers/ProvidersController.cs 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7838      +/-   ##
==========================================
- Coverage   65.67%   61.19%   -4.48%     
==========================================
  Files        2195     2209      +14     
  Lines       97542    97717     +175     
  Branches     8807     8811       +4     
==========================================
- Hits        64061    59799    -4262     
- Misses      31260    35794    +4534     
+ Partials     2221     2124      -97     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JimmyVo16 JimmyVo16 marked this pull request as ready for review June 18, 2026 19:07
@JimmyVo16 JimmyVo16 requested review from a team as code owners June 18, 2026 19:07
@JimmyVo16 JimmyVo16 requested review from AlexRubik and r-tome June 18, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request a Claude code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants