-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Database sharing with individual entities (#487)
* Database Create/Update/Delete for permissions * Add NoAccess level (not for storage, just for API usage) * Add CantSetOwnerPermissions error * Add entity_database_permission endpoint * Add client-side sharing support * Introduce entity database permissions into highest_query_access_level * Add managers to list of entities who can manage a database (go figure...) * Add entity database sharing level logic to can_discover_database * Replace snapshot-specific permissions with database management-specific ones (didn't need this level of granularity for now) * Fix which entity's access is being removed, patch->post, clarify error message, and make CantSetOwnerPermissions print more prettily * Tests to cover the various permissions the share endpoint opens * Update comments, test that owner permissions are unmodifiable * Access to one database owned by an entity doesn't grant access to another database owned by that entity * Rename endpoint to 'share' and standardize order of databases per entity * Ensure that ReadWrite permissions win over ReadOnly permissions if they exist * Clippy * Print stack trace on test failure
- Loading branch information
Showing
21 changed files
with
782 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,5 @@ jobs: | |
run: tests/set_up_e2e_env.sh | ||
- name: Run tests | ||
run: cargo test --verbose | ||
env: | ||
RUST_BACKTRACE: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.