kids-first / kf-portal-ui

:bar_chart: The Kids First Data Resource Portal and Social Network User Interface
Apache License 2.0
25 stars 15 forks source link

Database script to rename studies #1851

Closed aalex closed 5 years ago

aalex commented 5 years ago

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:

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

aalex commented 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.

aalex commented 5 years ago

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

aalex commented 5 years ago

(QA) It worked in QA.

aalex commented 5 years ago

Pediatric Brain Tumors: CBTTC is not anymore changed to Consortium: Pediatric Brain Tumors - CBTTC, but now Pediatric Brain Tumor Atlas: CBTTC.