Skip to content

Commit

Permalink
Added identifyingProperties to access_key.json schema. Fixed apparent…
Browse files Browse the repository at this point in the history
… code typo in access_key.py.
  • Loading branch information
dmichaels-harvard committed Aug 16, 2023
1 parent 430b92d commit 164593d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ snovault
Change Log
----------

10.0.3
======
* Fixed typo (trailing comma) in types/access_key.py in access_key_add WRT request.validated['user'].
* Added identifyingProperties with just uuid in schema/access_key.json.

10.0.2
======

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dcicsnovault"
version = "10.0.2"
version = "10.0.2.1b1" # TODO: To become 10.0.3
description = "Storage support for 4DN Data Portals."
authors = ["4DN-DCIC Team <[email protected]>"]
license = "MIT"
Expand Down
3 changes: 3 additions & 0 deletions snovault/schemas/access_key.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"$id": "/profiles/access_key.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [],
"identifyingProperties": [
"uuid"
],
"additionalProperties": false,
"mixinProperties": [
{
Expand Down
2 changes: 1 addition & 1 deletion snovault/types/access_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def access_key_add(context, request):
request.validated['access_key_id'] = generate_user()

if 'user' not in request.validated:
request.validated['user'], = [
request.validated['user'] = [
principal.split('.', 1)[1]
for principal in request.effective_principals
if principal.startswith('userid.')
Expand Down

0 comments on commit 164593d

Please sign in to comment.