[PM-25690] Create UpdateUserResetPasswordEnrollment command#7594
[PM-25690] Create UpdateUserResetPasswordEnrollment command#7594
Conversation
… managing user password reset enrollment in organizations
…te user enrollment and error handling
…or user password reset enrollment management
…enrollment functionality
…nrollmentCommand for password reset enrollment updates
…ndencies from IOrganizationService and OrganizationService implementations
Bitwarden Claude Code ReviewOverall Assessment: APPROVE This refactor extracts Code Review DetailsNo findings. Coverage of validation branches (orgUser missing, calling user mismatch, org missing or |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7594 +/- ##
==========================================
+ Coverage 59.76% 59.77% +0.01%
==========================================
Files 2103 2110 +7
Lines 92738 92786 +48
Branches 8262 8250 -12
==========================================
+ Hits 55426 55464 +38
- Misses 35354 35355 +1
- Partials 1958 1967 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Reviewing this will be my top priority today. |
…asswordEnrollmentCommand to support nullable resetPasswordKey
| OrganizationUser orgUser, | ||
| SutProvider<UpdateUserResetPasswordEnrollmentCommand> sutProvider) | ||
| { | ||
| orgUser.UserId = mismatchUserId ? Guid.NewGuid() : callingUserId; |
There was a problem hiding this comment.
Not necessarily a blocker, but I find that conditional statements like this in tests make them harder to read and can lead to potential bugs in the test code. Can we break this out into separate tests with helper methods for the shared logic?
There was a problem hiding this comment.
Refactored those tests and also renamed some to be clearer
JimmyVo16
left a comment
There was a problem hiding this comment.
Just one comment about the test code, but overall approved.
…mprove naming conventions and enhance clarity in test cases
|



🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-25690
📔 Objective
Extract the method from
OrganizationServiceinto its own command.