-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PXP-5525): Add blank version of record (#271)
* Update swagger API docs * First pass implement POST /index/blank/{GUID} - Create a blank record that is a new version of a previous record (i.e. shared a baseid with previous record) - acl/authz carry over from previous record - requires update permission on previous record - user must specify uploader field, can optionally specify file_name field (following convention of POST /index/blank) * Add unit tests for POST /index/blank/{GUID} * Fix errors - Return 201 on success - Fix syntax error in driver * Run black * Remove buggy test * Test no record found condition * Run black * Remove unnecessary guard for duplicate GUID * Revert deletion of test_create_blank_record_with_baseid * Run black * Update indexd/index/blueprint.py Co-authored-by: Pauline Ribeyre <ribeyre@uchicago.edu> * Support specifying guid - allow specifying guid - update swagger docs - check for GUID already exists - write tests for specifying guid * Update swagger docs - Remove unneeded OutputRefWithUrl - Update index/blank and index/blank/{{GUID}} endpoints to return 201, not 200 * Add test for creating blank version of blank record * Fix typo, remove unused import, run black Co-authored-by: Pauline Ribeyre <ribeyre@uchicago.edu>
- Loading branch information
1 parent
908c40d
commit 16c3e4f
Showing
4 changed files
with
380 additions
and
13 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
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.