[PM-34440] Fix cache duplicate-key error#7360
Conversation
|
Claude finished @JimmyVo16's task in 56s —— View job Code Review: PM-34440 Fix cache duplicate-key error
SummaryClean PR — no issues found. ✅ The fix correctly addresses the root cause of the duplicate-key exception by adding This is a minimal, focused fix that solves the problem without unnecessary complexity. |
|
|
New Issues (121)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 #7360 +/- ##
=======================================
Coverage 58.06% 58.06%
=======================================
Files 2054 2054
Lines 90558 90560 +2
Branches 8050 8050
=======================================
+ Hits 52579 52581 +2
Misses 36112 36112
Partials 1867 1867 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|






🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-34440
📔 Objective
Root cause: This happens when the calling code passes duplicate IDs. The GetOrganizationAbilitiesAsync method turns the result into a dictionary, which doesn't allow duplicates.
Fix:
📸 Screenshots
The test is for GetOrganizationAbilitiesAsync, but the same logic applies to GetProviderAbilitiesAsync as well.
Current state
Error.mov
After fix
Success.mov