[AC-1817] Remove AccessAll logic from miscellaneous sprocs
Type of change
- [ ] Bug fix
- [x] New feature development
- [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other
Objective
Continue to remove AccessAll logic in sprocs. This is a misc. grouping of sprocs that was left over after my last PRs.
Code changes
The following sprocs have been updated:
Cipher sprocs
- Cipher_ReadCanEditByIdUserId.sql
- Cipher_UpdateCollections.sql - in turn called by
- Cipher_CreateWithCollections
- Cipher_UpdateWithCollections
- CipherDetails_CreateWithCollections
Misc sprocs
- Folder_DeleteById.sql
- CollectionUser_ReadByOrganizationUserIds.sql
- OrganizationUserUserDetails_ReadWithCollectionsById.sql
The following sprocs have been deleted:
- OrganizationUser_ReadWithCollectionsById.sql (this was unused - see comment in migration file for more details)
The corresponding EF queries have also been updated accordingly.
Calling locations are updated to pass in the FlexibleCollections flag value, as in previous PRs.
Before you submit
- Please check for formatting errors (
dotnet format --verify-no-changes) (required) - If making database changes - make sure you also update Entity Framework queries and/or migrations
- Please add unit tests where it makes sense to do so (encouraged but not required)
- If this change requires a documentation update - notify the documentation team
- If this change has particular deployment requirements - notify the DevOps team
Codecov Report
Attention: 149 lines in your changes are missing coverage. Please review.
Comparison is base (
e20f533) 32.02% compared to head (da01a2c) 31.96%.
Additional details and impacted files
@@ Coverage Diff @@
## main #3574 +/- ##
==========================================
- Coverage 32.02% 31.96% -0.06%
==========================================
Files 1197 1197
Lines 62974 63069 +95
Branches 4802 4812 +10
==========================================
- Hits 20169 20163 -6
- Misses 41763 41865 +102
+ Partials 1042 1041 -1
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
No longer required.