Conversation
Bitwarden Claude Code ReviewOverall Assessment: APPROVE This PR fixes Code Review DetailsNo findings. The phase filtering logic, discount consumption handling, test clock support, and item/date preservation are all consistent with existing codebase patterns. The previous review finding about using |
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #7437 +/- ##
==========================================
+ Coverage 58.46% 58.48% +0.02%
==========================================
Files 2066 2066
Lines 91071 91135 +64
Branches 8100 8110 +10
==========================================
+ Hits 53247 53303 +56
- Misses 35922 35925 +3
- Partials 1902 1907 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
…hases (#7437) * [PM-34866] Fix EnableAutomaticTaxAsync to update schedule phases * Use test clock frozen time for phase filtering * Expand test_clock on customer subscription fetches




🎟️ Tracking
📔 Objective
Fixes two defects in
EnableAutomaticTaxAsync(in bothUpcomingInvoiceHandlerandUpdateBillingAddressCommand):PM-34866: Tax remains disabled when automatic tax is set to false during Phase 1. The method only updated
DefaultSettings.AutomaticTaxon the schedule, which does not propagate to the active phase or the underlying subscription.PM-34865: One-time migration discount (milestone-3/milestone-2c) incorrectly reapplied on
invoice.upcomingwhen tax is disabled during Phase 1.Fix
Updates
EnableAutomaticTaxAsyncto echo all schedule phases withAutomaticTax.Enabled = trueset on each phase — matching the pattern used by every other schedule-aware method in the codebase (SubscriberService.CancelSubscription,UpdatePremiumStorageCommand,ReinstateSubscriptionCommand, etc.).Key details:
UpdatePremiumStorageCommand)FrozenTimeis used for phase filtering to ensure correct behavior during QA testing with Stripe test clocks📸 Screenshots
N/A — no UI changes.