mirror of
https://github.com/bitwarden/server.git
synced 2026-04-12 00:31:55 -05:00
* Remove pm-23341-milestone-2 flag from UpcomingInvoiceHandler.HandleForUserAsync Always call AlignPremiumUsersSubscriptionConcernsAsync instead of gating it behind the feature flag. * Remove pm-23341-milestone-2 flag from AccountsController and SubscriptionResponseModel Remove includeMilestone2Discount parameter from both SubscriptionResponseModel constructors. Rename ShouldIncludeMilestone2Discount to ShouldIncludeDiscount and always evaluate the discount (coupon ID match + active check). * Update AccountsControllerTests after pm-23341-milestone-2 removal Remove feature flag mock setup lines and delete test methods that verified flag-disabled behavior. Rename tests to remove flag references. * Update SubscriptionResponseModelTests after pm-23341-milestone-2 removal Remove includeMilestone2Discount parameter from all constructor calls. Delete tests that verified flag-disabled behavior. * Update UpcomingInvoiceHandlerTests after pm-23341-milestone-2 removal Remove all feature flag mock setup lines for PM23341_Milestone_2. * Remove IFeatureService from AccountsController constructor and tests The constructor parameter became unused after removing the flag check. * Add default ListPremiumPlans mock for UpcomingInvoiceHandler tests After removing the m2 flag guard, AlignPremiumUsersSubscriptionConcernsAsync is always called and needs ListPremiumPlans to return a non-null value. Add a default empty list in the test constructor setup.