Skip to content

Commit 5008405

Browse files
authored
Merge pull request #863 from hubmapconsortium/karlburke/removeMetadataIDFields
Karlburke/remove metadata id fields
2 parents 53ca2a2 + 9ce6d15 commit 5008405

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

src/schema/provenance_schema.yaml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ ENTITIES:
201201
- lab_dataset_id
202202
- metadata:
203203
- lab_id
204+
- acquisition_id
205+
- library_id
206+
- donor_id
207+
- slide_id
208+
- tissue_id
209+
- parent_sample_id
204210
# Collection can not be derivation source but not target
205211
derivation:
206212
source: false
@@ -316,6 +322,12 @@ ENTITIES:
316322
- lab_dataset_id
317323
- metadata:
318324
- lab_id
325+
- acquisition_id
326+
- library_id
327+
- donor_id
328+
- slide_id
329+
- tissue_id
330+
- parent_sample_id
319331
- direct_ancestors:
320332
# Sample ancestors of a Dataset must have these fields removed
321333
- lab_tissue_sample_id
@@ -325,6 +337,12 @@ ENTITIES:
325337
# Both Sample and Dataset ancestors of a Dataset must have these fields removed
326338
- metadata:
327339
- lab_id
340+
- acquisition_id
341+
- library_id
342+
- donor_id
343+
- slide_id
344+
- tissue_id
345+
- parent_sample_id
328346
derivation:
329347
source: true
330348
target: true
@@ -669,7 +687,23 @@ ENTITIES:
669687
before_entity_update_validator:
670688
# Halt modification of entities which are "locked", such as a Dataset with status == 'Published'
671689
- validate_entity_not_locked_before_update
672-
# Publications can be either derivation source or target
690+
# Dataset can be either derivation source or target
691+
excluded_properties_from_public_response:
692+
- direct_ancestors:
693+
# Sample ancestors of a Publication must have these fields removed
694+
- lab_tissue_sample_id
695+
- submission_id
696+
# Dataset ancestors of a Publication must have these fields removed
697+
- lab_dataset_id
698+
# Both Sample and Dataset ancestors of a Publication must have these fields removed
699+
- metadata:
700+
- lab_id
701+
- acquisition_id
702+
- library_id
703+
- donor_id
704+
- slide_id
705+
- tissue_id
706+
- parent_sample_id # Publications can be either derivation source or target
673707
derivation:
674708
source: true
675709
target: true

0 commit comments

Comments
 (0)