PM-38280: Fix: Update collection API to V2#7014
Conversation
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE This PR migrates the collection update call from Code Review DetailsNo new findings. Prior review threads have all been addressed:
Test coverage verified for:
|
d0f5b74 to
23be10a
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7014 +/- ##
==========================================
+ Coverage 85.21% 86.50% +1.29%
==========================================
Files 1055 873 -182
Lines 66975 63881 -3094
Branches 9368 9259 -109
==========================================
- Hits 57073 55261 -1812
+ Misses 6690 5427 -1263
+ Partials 3212 3193 -19
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:
|
de2a929 to
841268b
Compare
841268b to
f3dcabb
Compare
f3dcabb to
6fb2ce1
Compare
6fb2ce1 to
982d56b
Compare
🎟️ Tracking
PM-38280
📔 Objective
This PR migrates the collections update call from the legacy
PUT /ciphers/{id}/collectionsendpoint toPUT /ciphers/{id}/collections_v2.The _v2 endpoint returns the updated cipher and an unavailable flag. If the cipher is null, the user has lost access to the item and the cipher is removed from storage; otherwise the returned cipher is stored locally.