Skip to content

Commit 1d9c8d2

Browse files
authored
Merge pull request #861 from hubmapconsortium/Derek-Furst/shortname-to-displayname
Derek furst/shortname to displayname
2 parents 427d3b3 + deed45a commit 1d9c8d2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

entity-api-spec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.3
22
info:
33
description: 'The HuBMAP Entity API is a standard RESTful web service with create, update and read operations for the standard HuBMAP provenance graph entities.'
4-
version: 2.4.6
4+
version: 2.5.3
55
title: HuBMAP Entity API
66
contact:
77
name: HuBMAP Help Desk
@@ -693,7 +693,7 @@ components:
693693
- Targeted-Shotgun-LC-MS
694694
- TMT-LC-MS
695695
- WGS
696-
description: 'The data or assay types contained in this dataset as a json array of strings. Each is an assay code from [assay types](https://github.com/hubmapconsortium/search-api/blob/main/src/search-schema/data/definitions/enums/assay_types.yaml).'
696+
description: 'The data or assay types contained in this dataset as a json array of strings.'
697697
collections:
698698
readOnly: true
699699
type: array
@@ -1134,7 +1134,7 @@ components:
11341134
- Targeted-Shotgun-LC-MS
11351135
- TMT-LC-MS
11361136
- WGS
1137-
description: 'The data or assay types contained in this dataset as a json array of strings. Each is an assay code from [assay types](https://github.com/hubmapconsortium/search-api/blob/main/src/search-schema/data/definitions/enums/assay_types.yaml).'
1137+
description: 'The data or assay types contained in this dataset as a json array of strings.'
11381138
collections:
11391139
readOnly: true
11401140
type: array

src/schema/provenance_schema.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ ENTITIES:
404404
type: list
405405
indexed: true
406406
required_on_create: false
407-
description: "The data or assay types contained in this dataset as a json array of strings. Each is an assay code from [assay types](https://github.com/hubmapconsortium/search-api/blob/main/src/search-schema/data/definitions/enums/assay_types.yaml)."
407+
description: "The data or assay types contained in this dataset as a json array of strings."
408408
dataset_type:
409409
before_property_create_validators:
410410
- validate_recognized_dataset_type
@@ -1000,7 +1000,7 @@ ENTITIES:
10001000
type: string
10011001
indexed: true
10021002
immutable: true
1003-
description: "Organ code specifier, only set if sample_type == organ. Valid values found in: [organ types](https://github.com/hubmapconsortium/search-api/blob/main/src/search-schema/data/definitions/enums/organ_types.yaml)"
1003+
description: "Organ code specifier, only set if sample_category == organ"
10041004
organ_other:
10051005
type: string
10061006
indexed: true

src/schema/schema_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ def validate_in_admin_group(property_key, normalized_entity_type, request, exist
812812
def validate_group_name(property_key, normalized_entity_type, request, existing_data_dict, new_data_dict):
813813
assigned_to_group_name = new_data_dict['assigned_to_group_name']
814814
globus_groups = schema_manager.get_auth_helper_instance().getHuBMAPGroupInfo()
815-
group_dict = next((entry for entry in globus_groups.values() if entry.get("shortname") == assigned_to_group_name), None)
815+
group_dict = next((entry for entry in globus_groups.values() if entry.get("displayname") == assigned_to_group_name), None)
816816
if group_dict is None:
817817
raise ValueError("Invalid value for 'assigned_to_group_name'")
818818
is_data_provider = group_dict.get('data_provider')

0 commit comments

Comments
 (0)