Skip to content

Conversation

@adamjtaylor
Copy link
Contributor

This pull request updates the logic for generating the CDS manifest file in FileTable.tsx to include support for Synapse viewers alongside CDS viewers. The change ensures compatibility with Synapse data and improves the handling of DRS URIs.

Updates to file viewer filtering and DRS URI handling:

  • Filtering logic update: Modified the .filter method to include files with Synapse viewers in addition to CDS viewers. ([packages/data-portal-explore/src/components/FileTable.tsxL96-R101](https://github.com/ncihtan/htan-portal/pull/810/files#diff-a63573f90ed09072cfc9f384306c5cbe963bda600068d234fd749f4284c80e4eL96-R101))
  • DRS URI generation: Updated the logic to handle cases where cds.drs_uri is unavailable by constructing a default Synapse DRS URI using the synapseId. ([packages/data-portal-explore/src/components/FileTable.tsxL96-R101](https://github.com/ncihtan/htan-portal/pull/810/files#diff-a63573f90ed09072cfc9f384306c5cbe963bda600068d234fd749f4284c80e4eL96-R101))
  • File name mapping: Added support for mapping Synapse viewer names alongside CDS viewer names. ([packages/data-portal-explore/src/components/FileTable.tsxL96-R101](https://github.com/ncihtan/htan-portal/pull/810/files#diff-a63573f90ed09072cfc9f384306c5cbe963bda600068d234fd749f4284c80e4eL96-R101))

@vercel
Copy link

vercel bot commented Jun 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
htan-portal-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2025 2:51pm

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the CDS manifest generation logic in FileTable.tsx to include support for Synapse viewers and improved handling of DRS URIs.

  • Updated file filtering to include files with either CDS or Synapse viewers
  • Adjusted DRS URI generation to use a default Synapse URI when the CDS URI is unavailable
  • Added support for mapping viewer names from Synapse viewers
Comments suppressed due to low confidence (1)

packages/data-portal-explore/src/components/FileTable.tsx:98

  • The new call to getDrsUri uses a different parameter order (only passing true for removeHostname) compared to the previous invocation (false, true), which may lead to inconsistent URI formatting. Consider using the same parameters as before (i.e. getDrsUri(..., false, true)) or document the change in behavior.
f.viewers?.cds?.drs_uri ? getDrsUri(f.viewers.cds.drs_uri, true) : `drs://repo-prod.prod.sagebase.org/${f.synapseId}`

@adamjtaylor
Copy link
Contributor Author

adamjtaylor commented Jun 5, 2025

Still a work in progress—currently not handling things quite right. I need to refine the modal to clearly differentiate between files that are available from Synapse, available through CDS, and those that have been sent to SB-CGC. Will follow up with a cleanup pass to make those distinctions more explicit.

@adamjtaylor adamjtaylor marked this pull request as ready for review June 9, 2025 13:53
@adamjtaylor adamjtaylor marked this pull request as draft June 9, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include Synapse DRS URIs in manifests for CGC

2 participants