PM-37985: Feat: Use PolicyView in the app#6966
Conversation
cf2944c to
e21498d
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6966 +/- ##
==========================================
- Coverage 86.21% 86.07% -0.14%
==========================================
Files 1007 917 -90
Lines 66068 65366 -702
Branches 9267 9244 -23
==========================================
- Hits 56962 56267 -695
- Misses 5912 5928 +16
+ Partials 3194 3171 -23
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e21498d to
16a729f
Compare
Bitwarden Claude Code ReviewOverall Assessment: APPROVE This PR is a mechanical refactor that migrates Code Review DetailsNo actionable findings. The refactor is correctly typed, the policy-type mapping is exhaustive, the read-side |
16a729f to
982e42d
Compare
| val hasPersonalOwnershipRestrictedOrg = getUserPolicies( | ||
| userId, | ||
| PolicyTypeJson.PERSONAL_OWNERSHIP, | ||
| PolicyType.ORGANIZATION_DATA_OWNERSHIP, |
There was a problem hiding this comment.
❓ Just want to sanity check; this is the SDK equivalent of PERSONAL_OWNERSHIP?
There was a problem hiding this comment.
Yep, the SDK looks like this:
ORGANIZATION_DATA_OWNERSHIP(5u),And ours looks like this:
@SerialName("5")
PERSONAL_OWNERSHIP,|
Thanks @SaintPatrck |
🎟️ Tracking
PM-37985
📔 Objective
This PR updates the
PolicyManagerto usePolicyViewas the primary policy model. All downstream users ofPolicyManagerhave been updated as well.