Closed aalex closed 5 years ago
Trying to test this in QA, and then some studies got renamed there, but the ETL run failed. I logged in to the computer whose IP should be the ETL in QA, but there only seems to be a MySQL Docker container there.
We are waiting for the ETL to be ran in QA before merging this into the develop branch. (since merging to the develop branch will automatically deploy it to the QA environment, and we want the new studies to be renamed, first, in order to test whether or not this migration script makes old queries still work once the renaming has been done)
SEe https://github.com/cr-ste-justine/wiki/wiki/KidsFirst-Deployment
(QA) It worked in QA.
Pediatric Brain Tumors: CBTTC
is not anymore changed to Consortium: Pediatric Brain Tumors - CBTTC
, but now Pediatric Brain Tumor Atlas: CBTTC
.
As data coordinators, we need to rename the studies.
The search queries in the cohort builder and the file repository store the short_name of the studies in text.
Acceptance criteria
Details of the renaming
This task is to rename the following studies in the queries for both the cohort builder and the file repository:
Adolescent Idiopathic Scoliosis
toKids First: Adolescent Idiopathic Scoliosis
Disorders of Sex Development
toKids First: Disorders of Sex Development
Ewing Sarcoma: Genetic Risk
toKids First: Ewing Sarcoma - Genetic Risk
Orofacial Cleft: European Ancestry
toKids First: Orofacial Cleft - European Ancestry
Orofacial Cleft: Latin American
toKids First: Orofacial Cleft - Latin American
Pediatric Brain Tumors: CBTTC
toConsortium: Pediatric Brain Tumors - CBTTC
Syndromic Cranial Dysinnervation
toKids First: Syndromic Cranial Dysinnervation
TARGET: Neuroblastoma
toNCI CRDC: TARGET - Neuroblastoma
Congenital Heart Defects
toKids First: Congenital Heart Defects
TARGET: Acute Myeloid Leukemia
toNCI CRDC: TARGET - Acute Myeloid Leukemia
Technical notes
Riff stores its infos in JSON fields in a PosgreSQL database.
We can use Flyway, a database migration tool, to do the migration, and run SQL.
The SQL should look like this:
The script should be located here: https://github.com/kids-first/riff/tree/master/src/main/resources/flyway/sql