Skip to content

Commit

Permalink
Merge pull request #26 from hubmapconsortium/yuanzhou/rename-submission
Browse files Browse the repository at this point in the history
Rename SUBMISSION to UPLOAD
  • Loading branch information
yuanzhou authored Apr 12, 2021
2 parents 3ab4a88 + 2ee4378 commit d51c360
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/uuid_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

BASE_DIR_TYPES = ['DATA_UPLOAD', 'INGEST_PORTAL_UPLOAD']

HUBMAP_ID_ENTITY_TYPES = ['ACTIVITY', 'SAMPLE', 'DONOR', 'DATASET', 'COLLECTION', 'SUBMISSION', 'REFERENCE']
HUBMAP_ID_ENTITY_TYPES = ['ACTIVITY', 'SAMPLE', 'DONOR', 'DATASET', 'COLLECTION', 'UPLOAD', 'REFERENCE']
SUBMISSION_ID_ENTITY_TYPES = ['SAMPLE', 'DONOR']
ANCESTOR_REQUIRED_ENTITY_TYPES = ['SAMPLE', 'DONOR', 'DATASET', 'FILE', 'SUBMISSION']
ANCESTOR_REQUIRED_ENTITY_TYPES = ['SAMPLE', 'DONOR', 'DATASET', 'FILE', 'UPLOAD']

MULTIPLE_ALLOWED_ORGANS = ['LY', 'SK', 'BD', 'BM']

Expand Down Expand Up @@ -178,7 +178,7 @@ def uuidPost(self, req, nIds):
if n_parents != 1:
return(Response("Entity type " + entityType + " requires a single ancestor id, " + str(n_parents) + " provided.", 400))

if entityType == "DONOR" or entityType == 'SUBMISSION':
if entityType == "DONOR" or entityType == 'UPLOAD':
ancestor_ids = []
lab_info = self.__resolve_lab_id(parentIds[0], userId, userEmail)
if isinstance(lab_info, Response):
Expand Down

0 comments on commit d51c360

Please sign in to comment.