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

🗃️ Rewrite Model "Sequencing Files" URLs to GDC v2 #1073

Closed mistryrn closed 4 months ago

mistryrn commented 4 months ago

Context

The HCMI "Model Details" page (e.g. https://hcmi-searchable-catalog.nci.nih.gov/model/HCM-BROD-0648-C71) contains a "Sequencing Files" link under the "External Resources" section that previously pointed to a GDC v1 search filtered on the files related to the GDC Case ID of that model.

With the release of GDC v2, the ability to deep link to a search with file filters was deprecated.

GDC has since added a "Files" table to the "Case" page for a given Case ID, allowing us to link directly to that table and replace the functionality we had with v1.

This PR migrates existing links to the new format, and ensures new links will be created appropriately.

Changes

🚨 DEPLOY INSTRUCTIONS 🚨

  1. Deploy the new tag through Jenkins
  2. Run the 20240708184150-update-models-gdc-v2-sequence-urls migration:
    cd cms/variant-migrations
    ./../node_modules/.bin/migrate-mongo up -f migrate-mongo-config.js
  3. Restart the cms service
  4. Run the republish script
    ENV={env} npm run republish