-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Task/WG-177 handle duplicate users in ds projects (#148)
* Ensure we don't have duplicate project users * Improve log statement * Only throw ObservableProjectAlreadyExists if really that error
- Loading branch information
1 parent
8f3280c
commit 01e7b01
Showing
5 changed files
with
112 additions
and
10 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
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
75 changes: 75 additions & 0 deletions
75
geoapi/tests/fixtures/designsafe_api_project_with_duplicate_users.json
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"uuid": "5752672753351626260-242ac118-0001-014", | ||
"schemaId": null, | ||
"internalUsername": null, | ||
"associationIds": [], | ||
"lastUpdated": "2022-07-15T14:12:13.776000-05:00", | ||
"created": "2022-04-22T15:06:02.127000-05:00", | ||
"owner": "ds_admin", | ||
"name": "designsafe.project", | ||
"_links": { | ||
"self": { | ||
"href": "https://agave.designsafe-ci.org/meta/v2/data/5752672753351626260-242ac118-0001-014" | ||
}, | ||
"permissions": { | ||
"href": "https://agave.designsafe-ci.org/meta/v2/data/5752672753351626260-242ac118-0001-014/pems" | ||
}, | ||
"owner": { | ||
"href": "https://agave.designsafe-ci.org/profiles/v2/ds_admin" | ||
}, | ||
"associationIds": [] | ||
}, | ||
"value": { | ||
"teamMembers": [ | ||
"user4", | ||
"user5", | ||
"user_pi", | ||
"user_copi_1", | ||
"user_copi_2" | ||
], | ||
"guestMembers": [], | ||
"coPis": ["user_copi_1","user_copi_2"], | ||
"projectType": "None", | ||
"dataType": "", | ||
"teamOrder": [], | ||
"projectId": "PRJ-1234", | ||
"description": "", | ||
"title": "Some project", | ||
"pi": "user_pi", | ||
"awardNumber": [ | ||
"[", | ||
"{", | ||
"u", | ||
"'", | ||
"n", | ||
"a", | ||
"m", | ||
"e", | ||
":", | ||
" ", | ||
"]", | ||
",", | ||
"b", | ||
"r", | ||
"}" | ||
], | ||
"awardNumbers": [], | ||
"associatedProjects": [ | ||
{ | ||
"href": "", | ||
"title": "" | ||
} | ||
], | ||
"ef": "", | ||
"keywords": "", | ||
"fileTags": [], | ||
"nhTypes": [], | ||
"dois": [], | ||
"hazmapperMaps": [] | ||
}, | ||
"_ui": { | ||
"uuid": "5752672753351626260-242ac118-0001-014", | ||
"orders": [] | ||
}, | ||
"_related": {} | ||
} |