Skip to content

Commit

Permalink
make some field not changable
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao committed May 30, 2024
1 parent e332a09 commit 0deb4a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions files/scripts/healdata/heal-cedar-data-ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ def get_related_studies(serial_num, guid, hostname):
cedar_record_other_study_websites = cedar_record.get(
"metadata_location", {}
).get("other_study_websites", [])
# this ensures the nih_application_id, cedar_study_level_metadata_template_instance_ID and study_name are not alterable from CEDAR side
del cedar_record["metadata_location"]
del cedar_record["minimal_info"]["study_name"]

mds_res["gen3_discovery"]["study_metadata"].update(cedar_record)
mds_res["gen3_discovery"]["study_metadata"]["metadata_location"][
Expand Down
2 changes: 1 addition & 1 deletion kube/services/jobs/cedar-ingestion-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
secretName: cedar-g3auto # the secret name in kube
initContainers:
- name: cedar
image: quay.io/cdis/awshelper:master
image: quay.io/cdis/awshelper:fix_ct_gov
imagePullPolicy: Always
ports:
- containerPort: 80
Expand Down

0 comments on commit 0deb4a4

Please sign in to comment.