Skip to content

Commit 5a7e82d

Browse files
authored
Merge pull request #849 from hubmapconsortium/karlburke/PUTCall500ExceptionRevertingDatasetStatus
Introduce ingest-ui as X-Hubmap-Application header value for PUT and POST calls
2 parents bd5cbdd + 45ad301 commit 5a7e82d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/schema/schema_constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class SchemaConstants(object):
66
ENTITY_API_APP = 'entity-api'
77
COMPONENT_DATASET = 'component-dataset'
88
INGEST_PIPELINE_APP = 'ingest-pipeline'
9+
INGEST_UI = 'ingest-ui'
910
HUBMAP_APP_HEADER = 'X-Hubmap-Application'
1011
LOCKED_ENTITY_UPDATE_HEADER = 'X-HuBMAP-Update-Override'
1112
INTERNAL_TRIGGER = 'X-Internal-Trigger'

src/schema/schema_validators.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def validate_application_header_before_entity_create(options_dict):
4141
applications_allowed = [
4242
SchemaConstants.INGEST_API_APP,
4343
SchemaConstants.INGEST_PIPELINE_APP,
44+
SchemaConstants.INGEST_UI,
4445
SchemaConstants.ENTITY_API_APP
4546
]
4647

@@ -348,6 +349,7 @@ def validate_application_header_before_property_update(property_key, normalized_
348349
applications_allowed = [
349350
SchemaConstants.INGEST_API_APP,
350351
SchemaConstants.INGEST_PIPELINE_APP,
352+
SchemaConstants.INGEST_UI,
351353
SchemaConstants.ENTITY_API_APP
352354
]
353355

0 commit comments

Comments
 (0)