[PM-26383] Remove feature flag from server-side for autoconfirm#7402
[PM-26383] Remove feature flag from server-side for autoconfirm#7402
Conversation
…ure flag checks. Updated related commands and tests to utilize policy requirements instead of feature service checks for automatic user confirmation. Cleaned up organization form view by simplifying checkbox rendering for automatic user confirmation.
|
New Issues (122)Checkmarx found the following issues in this Pull Request
|
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE This PR removes the Code Review Details
|
src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/AcceptOrgUserCommand.cs
Show resolved
Hide resolved
…omatic user confirmation. Updated logic to streamline policy requirement checks and cleaned up related tests by removing unnecessary feature flag assertions.
…dated multiple test classes to include checks for `AutomaticUserConfirmationPolicyRequirement`, ensuring no auto-confirm restrictions are applied by default. Refactored related assertions in `AcceptOrgUserCommandTests`, `ConfirmOrganizationUserCommandTests`, `RestoreOrganizationUserCommandTests`, and others to streamline compliance validation logic.
…test classes. Added checks for `AutomaticUserConfirmationPolicyRequirement` in `ConfirmOrganizationUserCommandTests`, `RestoreOrganizationUserCommandTests`, and `SelfHostedOrganizationSignUpCommandTests`, ensuring compliance validation logic is streamlined and consistent. Updated assertions to reflect new policy requirements.
…rs' of https://github.com/bitwarden/server into ac/pm-19934-implement-feature-flag-for-auto-confirm-users
…iderServiceTests to enhance test coverage for user confirmation policies.
…ationPolicyRequirement, enhancing test coverage for user acceptance scenarios.
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #7402 +/- ##
==========================================
+ Coverage 58.48% 58.55% +0.06%
==========================================
Files 2063 2063
Lines 91187 91134 -53
Branches 8129 8108 -21
==========================================
+ Hits 53332 53360 +28
+ Misses 35957 35866 -91
- Partials 1898 1908 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
The names of the AcceptUserAsync_FeatureFlagEnabled_GranteeInAutoConfirmOrg_ThrowsBadRequest and InviteAsync_FeatureFlagEnabled_GrantorInAutoConfirmOrg_ThrowsBadRequest need to be updated to remove FeatureFlagEnabled_ as the flag has been removed.






🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-26383
📔 Objective
Removes the feature flag logic from client side for autoconfirm flag