Shane Melton
60dd83c375
[AC-1174] Add CollectionGroupType.sql and CollectionUserType.sql
2 years ago
Shane Melton
f88696bdc6
[AC-1174] Re-use ICollectionAccess list in CollectionsController endpoint
2 years ago
Shane Melton
ce35eeb3bd
[AC-1174] Update BulkAddCollectionAccessCommand to accept list of ICollectionAccess entities directly
2 years ago
Shane Melton
e78095cc3b
[AC-1174] Add support for direct passing of domain entities to CollectionRepository
2 years ago
Shane Melton
5b0ba23616
[AC-1174] Introduce CollectionUserType and CollectionGroupType Dapper data table helpers
2 years ago
Shane Melton
426e0b5829
[AC-1174] Add unit tests for new controller endpoint
2 years ago
Shane Melton
e1e4c9a67e
[AC-1174] Cleanup BulkCollectionAccessRequestModel helpers
2 years ago
Shane Melton
7dc8021f85
[AC-1174] Improve null checks
2 years ago
Shane Melton
57aa890198
[AC-1174] Implement EF repository method
2 years ago
Shane Melton
d27ce98f0e
[AC-1174] Add User_BumpAccountRevisionDateByCollectionIds and database migration script
2 years ago
Shane Melton
321e38f560
[AC-1174] Add event logs for bulk add collection access command
2 years ago
Shane Melton
0a87c48237
[AC-1174] Add CreateOrUpdateAccessMany method to CollectionRepository
2 years ago
Shane Melton
8f8114ac0e
[AC-1174] Introduce BulkAddCollectionAccessCommand and validation logic/tests
2 years ago
Shane Melton
1f9e92a24c
[AC-1174] Introduce initial bulk-access collection endpoint
2 years ago
Shane Melton
9a99b87655
[AC-1174] Update SelectionReadOnlyRequestModel to use Guid for Id property
2 years ago
Shane Melton
364945b388
[AC-1174] Throw bad request exception when collections belong to different organizations
2 years ago
Shane Melton
c54e7da5f2
[AC-1174] Fix null reference exception
2 years ago
Shane Melton
e9ca9774e1
[AC-1174] Require single organization for collection access authorization handler
...
- Add requirement that all target collections must belong to the same organization
- Simplify logic related to multiple organizations
- Update tests and helpers
- Use ToHashSet to improve lookup time
2 years ago
Shane Melton
829259ecf7
[AC-1174] Rename operation to CreateUpdateDelete
2 years ago
Shane Melton
121763e111
[AC-1174] Move CollectionFixture to Vault folder
2 years ago
Shane Melton
33750b1cb3
[AC-1174] Move CollectionAccessAuthorizationHandler into Api project
2 years ago
Shane Melton
c95d8ccb51
[AC-1174] Introduce new AddCoreAuthorizationHandlers() extension method
2 years ago
Shane Melton
e5d2a875af
[AC-1174] Reorganize authorization handlers in Core project
2 years ago
Shane Melton
642aea03df
[AC-1174] Tweak unit test to fail minimally
2 years ago
Shane Melton
e3323099b7
[AC-1174] Remove individual CollectionGroup and CollectionUser auth handlers and use base class instead
2 years ago
Shane Melton
526231e46c
[AC-1174] Introduce ICollectionAccess.cs
2 years ago
Shane Melton
b2610f6fb3
[AC-1174] Reduce nested loops
2 years ago
Shane Melton
db3e9efb70
[AC-1174] Add check for provider users
2 years ago
Shane Melton
87b793b477
[AC-1174] Cleanup typo and redundant ToList() call
2 years ago
Shane Melton
c4de30d163
[AC-1174] Formatting
2 years ago
Shane Melton
94eb43f2f7
[AC-1174] Update CollectionUserAuthorizationHandler and CollectionGroupAuthorizationHandler to use the new CollectionAccessAuthorizationHandlerBase class
2 years ago
Shane Melton
ac068a061d
[AC-1174] Introduce shared CollectionAccessAuthorizationHandlerBase
...
A shared base authorization handler was created for both CollectionUser and CollectionGroup resources, as they share the same underlying management authorization logic.
2 years ago
Shane Melton
4ab55e5862
[AC-1174] Simplify CollectionUserAuthorizationHandler.cs
...
Modify the authorization handler to only perform authorization logic. Validation logic will need to be handled by any calling commands/controllers instead.
2 years ago
Shane Melton
c61df94f50
[AC-1174] Introduce WithValueFromList AutoFixtureExtensions
...
Modify CollectionCustomization to use multiple organization Ids for auto generated test data
2 years ago
Shane Melton
0889d33fc7
[AC-1174] Cleanup CollectionFixture customization
...
Implement and use re-usable extension method to support seeded Guids
2 years ago
Shane Melton
6ffe5f356d
[AC-1174] Introduce CollectionGroupAuthorizationHandler.cs
2 years ago
Shane Melton
ab90d9f9e4
[AC-1174] Add CollectionGroupOperation.cs
2 years ago
Shane Melton
eddc06425e
[AC-1174] Formatting
2 years ago
Shane Melton
d361befea8
[AC-1174] Add some more details to CollectionCustomization
2 years ago
Shane Melton
df2b04e567
[AC-1174] Add CreateForNewCollection CollectionUser requirement
2 years ago
Shane Melton
409d4fced7
[AC-1174] Introduce CollectionUserAuthorizationHandler
2 years ago
Shane Melton
7d177c3645
[AC-1174] Introduce BulkAuthorizationHandler.cs
2 years ago
Vincent Salucci
78bdd51355
Merge branch 'master' into feature/flexible-collections
2 years ago
Vincent Salucci
cf78f12ef9
[AC-1374] Limit collection creation/deletion to Owner/Admin ( #3145 )
...
* feat: update org table with new column, write migration, refs AC-1374
* feat: update views with new column, refs AC-1374
* feat: Alter sprocs (org create/update) to include new column, refs AC-1374
* feat: update entity/data/request/response models to handle new column, refs AC-1374
* feat: update necessary Provider related views during migration, refs AC-1374
* fix: update org create to default new column to false, refs AC-1374
* feat: added new API/request model for collection management and removed property from update request model, refs AC-1374
* fix: renamed migration script to be after secrets manage beta column changes, refs AC-1374
* fix: dotnet format, refs AC-1374
* feat: add ef migrations to reflect mssql changes, refs AC-1374
* fix: dotnet format, refs AC-1374
* feat: update API signature to accept Guid and explain Cd verbiage, refs AC-1374
2 years ago
Opeyemi
e0299043a2
UPDATE: dotnet setup run step and to use global version ( #3182 )
...
* UPDATE: dotnet setup run step and to use global version
* TEST: make the build run
* Revert attachment base image to latest
2 years ago
Opeyemi
0487056afb
[DEVOPS-1517] - Update Server release to pull from Prod ACR ( #3169 )
...
* UPDATE: Server release to pull from Prod ACR
* UPDATE: condition for DCT setup
* UPDATE: attachment Dockerfile to reference server latest
* REMOVE: push Server image to DockerHub
* FIX: lint error
* Minor changes
2 years ago
cd-bitwarden
115ead00d4
Adding missing test to projectscontroller ( #3129 )
2 years ago
Robyn MacCallum
4f08039756
[AC-1117] Add manage permission ( #3126 )
...
* Update sql files to add Manage permission
* Add migration script
* Rename collection manage migration file to remove duplicate migration date
* Migrations
* Add manage to models
* Add manage to repository
* Add constraint to Manage columns
* Migration lint fixes
* Add manage to OrganizationUserUserDetails_ReadWithCollectionsById
* Add missing manage fields
* Add 'Manage' to UserCollectionDetails
* Use CREATE OR ALTER where possible
2 years ago
Opeyemi
9d4b98e787
FIX: add more dotnet setup ( #3181 )
...
* UPDATE: move dotnet setup to run before checkout
2 years ago
Matt Bishop
6785908e39
Explicitly install .NET SDK for linting ( #3180 )
2 years ago