-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[PM-24759] Add Method for Retrieving Policy Requirements for Multiple Users #6876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[PM-24759] Add Method for Retrieving Policy Requirements for Multiple Users #6876
Conversation
test/Core.Test/AdminConsole/OrganizationFeatures/Policies/PolicyRequirementQueryTests.cs
Show resolved
Hide resolved
|
New Issues (1)Checkmarx found the following issues in this Pull Request
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6876 +/- ##
==========================================
- Coverage 59.91% 56.07% -3.84%
==========================================
Files 1966 1968 +2
Lines 86898 86975 +77
Branches 7743 7749 +6
==========================================
- Hits 52067 48774 -3293
- Misses 32948 36395 +3447
+ Partials 1883 1806 -77 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Claude finished @sven-bitwarden's task in 1m 43s —— View job Code Review: PM-24759 Add Method for Retrieving Policy Requirements for Multiple UsersReviewed commit: b36f775 (Refactor return type to include user ID) SummaryThis PR adds a collection-based Re-Review NotesCommit b36f775 addresses the feedback from the previous discussion about including user IDs in the return type. The return type has been changed from Findings
What I Reviewed
Verdict✅ Approved - Clean implementation that addresses the feedback about return type usability. The tuple return type makes it straightforward for callers to match requirements to users. |


🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-24759
📔 Objective
Following existing patterns, we want to expose a
GetAsyncmethod in the query class that supports single and collection parameters. This PR opens PolicyRequirementQuery's ability to load requirements given a list of user IDs.We're also now delegating requests for single users to this collection-based request, unifying logic across both methods.
Tested by validating the MasterPasswordPolicyRequirement was enforced against a user upon login.
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes