nci-hcmi-catalog / portal

HCMI Searchable Catalog Portal
https://hcmi-searchable-catalog.nci.nih.gov/
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

🗃️ Update Variants and Dictionary Terms (#1025) #1034

Closed mistryrn closed 1 year ago

mistryrn commented 1 year ago

Adds db migration scripts to insert new variants data and dictionary terms.

🚨 Deploy Instructions 🚨

  1. Run the 20221110165327-variants-updates.js, 20230105220048-dictionary-updates.js, and 20230112015127-change-not-done.js migrations:
    cd cms/variant-migrations
    ./../node_modules/.bin/migrate-mongo up -f migrate-mongo-config.js
  2. Restart the cms service
  3. Run the republish script
    ENV={env} npm run republish

Note: the CI scripts for deploying to CBIIT environments automatically run the migrations, so we shouldn't need to provide explicit instructions to run the migrations