From 2ee43784968818e5b0bb6ff507cff0b2a6b3c9a0 Mon Sep 17 00:00:00 2001 From: yuanzhou Date: Mon, 12 Apr 2021 10:58:28 -0400 Subject: [PATCH] Rename SUBMISSION to UPLOAD --- src/uuid_worker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uuid_worker.py b/src/uuid_worker.py index a3ad107..73bb170 100644 --- a/src/uuid_worker.py +++ b/src/uuid_worker.py @@ -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'] @@ -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):