From b312554e2734ff8caa5cf324f99016072e703233 Mon Sep 17 00:00:00 2001 From: kburke <209327+kburke@users.noreply.github.com> Date: Mon, 5 May 2025 08:44:02 -0400 Subject: [PATCH 1/2] New fields to exclude from public responses --- src/schema/provenance_schema.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/schema/provenance_schema.yaml b/src/schema/provenance_schema.yaml index dbb3351b..de147ef6 100644 --- a/src/schema/provenance_schema.yaml +++ b/src/schema/provenance_schema.yaml @@ -201,6 +201,12 @@ ENTITIES: - lab_dataset_id - metadata: - lab_id + - acquisition_id + - library_id + - donor_id + - slide_id + - tissue_id + - parent_sample_id # Collection can not be derivation source but not target derivation: source: false @@ -316,6 +322,12 @@ ENTITIES: - lab_dataset_id - metadata: - lab_id + - acquisition_id + - library_id + - donor_id + - slide_id + - tissue_id + - parent_sample_id - direct_ancestors: # Sample ancestors of a Dataset must have these fields removed - lab_tissue_sample_id @@ -325,6 +337,12 @@ ENTITIES: # Both Sample and Dataset ancestors of a Dataset must have these fields removed - metadata: - lab_id + - acquisition_id + - library_id + - donor_id + - slide_id + - tissue_id + - parent_sample_id derivation: source: true target: true From 9ce6d153d86920857db74f74ee23fe8ef265f8c9 Mon Sep 17 00:00:00 2001 From: kburke <209327+kburke@users.noreply.github.com> Date: Wed, 7 May 2025 12:24:53 -0400 Subject: [PATCH 2/2] Duplicate excluded_properties_from_public_response:direct_ancestors YAML from Dataset into Publications. --- src/schema/provenance_schema.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/schema/provenance_schema.yaml b/src/schema/provenance_schema.yaml index 13dbd250..aab5d801 100644 --- a/src/schema/provenance_schema.yaml +++ b/src/schema/provenance_schema.yaml @@ -687,7 +687,23 @@ ENTITIES: before_entity_update_validator: # Halt modification of entities which are "locked", such as a Dataset with status == 'Published' - validate_entity_not_locked_before_update - # Publications can be either derivation source or target + # Dataset can be either derivation source or target + excluded_properties_from_public_response: + - direct_ancestors: + # Sample ancestors of a Publication must have these fields removed + - lab_tissue_sample_id + - submission_id + # Dataset ancestors of a Publication must have these fields removed + - lab_dataset_id + # Both Sample and Dataset ancestors of a Publication must have these fields removed + - metadata: + - lab_id + - acquisition_id + - library_id + - donor_id + - slide_id + - tissue_id + - parent_sample_id # Publications can be either derivation source or target derivation: source: true target: true