-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[PM-24549] Remove feature flag: use-pricing-service
#6567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[PM-24549] Remove feature flag: use-pricing-service
#6567
Conversation
|
New Issues (2)Checkmarx found the following issues in this Pull Request
Fixed Issues (7)Great job! The following issues were fixed in this Pull Request
|
|
Claude finished @amorask-bitwarden's task —— View job Code Review CompleteThis PR successfully removes the Summary of ChangesArchitecture improvements:
Configuration:
FindingsFinding 1: Null-forgiving operator could cause runtime exception in
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6567 +/- ##
==========================================
- Coverage 53.04% 52.71% -0.33%
==========================================
Files 1911 1897 -14
Lines 85056 84176 -880
Branches 7611 7574 -37
==========================================
- Hits 45117 44375 -742
+ Misses 38181 38051 -130
+ Partials 1758 1750 -8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
eliykat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of general questions but LGTM from the AC Team side.
src/Api/AdminConsole/Models/Response/ProfileOrganizationResponseModel.cs
Show resolved
Hide resolved
f8c93c9
JaredSnider-Bitwarden
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving auth file without reviewing others as the only change is a new is dev app setting.


🎟️ Tracking
📔 Objective
This PR removes the
use-pricing-servicefeature flag and completes the migration to using the pricing service as the single source of truth for plan information. It refactors how plans are stored and accessed throughout the codebase, separating production code from test mocks.Changes
🏗️ Architecture & Refactoring
StaticStore Cleanup
StaticStore(~55 lines removed)StaticStoreto newMockPlansclassSponsoredPlansclass for production usePlan Model Reorganization
test/Core.Test/Billing/Mocks/Plans/directory:test/Core.Test/Billing/Mocks/MockPlans.csto centralize test plan accessSponsored Plans
src/Core/Billing/Models/SponsoredPlans.csfor production codeStaticStore.SponsoredPlanstoSponsoredPlans.AllorSponsoredPlans.Get()⚙️ Configuration Updates
Added
pricingUrito Development appsettings for local development and integration tests:src/Admin/appsettings.Development.jsonsrc/Api/appsettings.Development.jsonsrc/Billing/appsettings.Development.jsonbitwarden_license/src/Scim/appsettings.Development.jsonbitwarden_license/src/Sso/appsettings.Development.jsonbitwarden_license/test/Scim.IntegrationTest/appsettings.Development.json(new file)All configured to use:
https://billingpricing.qa.bitwarden.pw🧪 Test Updates (77 files)
Updated all test files to use the new mock structure:
StaticStore.GetPlan()→MockPlans.Get()StaticStore.GetSponsoredPlan()→SponsoredPlans.Get()Bit.Core.Test.Billing.MocksnamespaceBreaking Changes
None - this is an internal refactoring with no API or behavior changes.
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes