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

⬆️ Upgrade Arranger, Elasticsearch, and More! (#1001) #1016

Closed mistryrn closed 2 years ago

mistryrn commented 2 years ago

Software upgrades and linter fixes!

~The Arranger upgrade seems to have updated the linter settings, triggering a bunch of new warnings (mostly for adding parentheses around individual params for functions, with some max line length related changes as well).~ EDIT: this was a false positive, after clearing node_modules and re-running yarn from the root, the linter reverted back to the previous state. I have reverted all linter changes as a result.

ES and Kibana upgrades done here via docker -- will obviously need to do something different for CBIIT. Have tested these versions on collab (as well as the mongo upgrade), no issues there. Locally, just the docker updates were enough. On collab it was more involved, I detailed what I did below.

Additionally, I have reached out to Cuong to see if he has any notes on doing the last ES upgrade for CBIIT HCMI.

🚨 DEPLOY INSTRUCTIONS 🚨

At this time, I'm unsure what the exact deploy instructions for CBIIT will be since I don't know how ES and Mongo are installed there. However, based on prior deploys to CBIIT and deploying this to Collab, I suspect it will be something like this:

  1. Clear the existing node_modules: rm -rf node_modules api/node_modules cms/node_modules data_model/node_modules ui/node_modules
  2. Deploy the new tag through Jenkins
  3. Upgrade ES and Kibana
    • stop the elasticsearch service
    • stop the kibana service
    • upgrade to elasticsearch version 7.17.6
    • upgrade to kibana version 7.17.6
    • start the elasticsearch service
    • start the kibana service
  4. Upgrade Mongo
    • create a backup of the current mongo db
    • stop the mongo service
    • upgrade to mongo version 4.4.16
    • start the mongo service
    • (if needed) restore the db from the backup
  5. Restart the api and cms services

Commits

⬆️ Upgrade Arranger to v2.19.1 (https://github.com/nci-hcmi-catalog/portal/issues/1001)

🚨 Fix Linter Warnings (https://github.com/nci-hcmi-catalog/portal/issues/1001)

Revert "🚨 Fix Linter Warnings (https://github.com/nci-hcmi-catalog/portal/issues/1001)"