[PM-332124] Finalize PolicyRequirement + 2FA Feature Flag#7209
[PM-332124] Finalize PolicyRequirement + 2FA Feature Flag#7209sven-bitwarden wants to merge 2 commits intomainfrom
Conversation
|
Claude finished @sven-bitwarden's task in 3m 15s —— View job I'll analyze this and get back to you. |
Review SummaryClean feature flag removal for the PolicyRequirements flag as it relates to 2FA policy enforcement. The PR removes the legacy IPolicyService code paths from four source files (AcceptOrgUserCommand, ConfirmOrganizationUserCommand, RestoreOrganizationUserCommand, UserService), keeping only the already-tested RequireTwoFactorPolicyRequirement path that was behind the flag. Risk Assessment: Low
No security, correctness, or breaking change concerns identified. The net deletion of ~375 lines is consistent with a well-scoped flag removal. |
|
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7209 +/- ##
==========================================
- Coverage 57.44% 57.44% -0.01%
==========================================
Files 2032 2032
Lines 89410 89370 -40
Branches 7951 7945 -6
==========================================
- Hits 51366 51335 -31
+ Misses 36201 36195 -6
+ Partials 1843 1840 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|




🎟️ Tracking
PM-33213
📔 Objective
AC is moving on from the PolicyRequirements feature flag, and committing to its removal (and subsequent enablement).
This PR handles the code around the 2FA flag, and is now using PolicyRequirements where it can. The majority of this PR was spent removing tests that are no longer applicable.