Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5409 +/- ##
==========================================
+ Coverage 44.47% 44.52% +0.04%
==========================================
Files 1512 1513 +1
Lines 70282 70325 +43
Branches 6341 6347 +6
==========================================
+ Hits 31261 31314 +53
+ Misses 37675 37663 -12
- Partials 1346 1348 +2 ☔ View full report in Codecov by Sentry. |
|
Fixed Issues (4)Great job! The following issues were fixed in this Pull Request
|
audreyality
left a comment
There was a problem hiding this comment.
👍🏻 Looks good to me! Thank you for responding to my comments!
| sutProvider.GetDependency<IPolicyService>().AnyPoliciesApplicableToUserAsync( | ||
| Arg.Any<Guid>(), Arg.Any<PolicyType>()).ThrowsAsync<Exception>(); |
There was a problem hiding this comment.
👍🏻 I love when a test causes a method that shouldn't be called to throw. It's such an elegant way to test the invariant.
|






🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-18234
📔 Objective
SendPolicyRequirement, which summarizes the business requirements of our two Send-related policy types:DisableSendandSendOptions. This makes it easier to consume for calling code, which doesn't have to concern itself with handling Policy and data objects directly.IPolicyRequirementQuery(already implemented).This is a new pattern that we are just starting to roll out, so if you're reviewing please let me know if you have any questions.
Note that generally there will be 1
PolicyTypeper requirement, however in this case they were closely related enough I thought it was a nice bonus to group them.📸 Screenshots
⏰ 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