Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify fetch resources from single study to multi-study #5038

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

hweej
Copy link
Contributor

@hweej hweej commented Nov 4, 2024

Fix cBioPortal/cbioportal#11158. Add multiy-study result for files & resource tab on Study view. Fetch resource data for each study on the frontend and combine the results. Note: in the future we might want to improve the endpoint to handle multiple studies directly

@hweej hweej self-assigned this Nov 4, 2024
Copy link

netlify bot commented Nov 4, 2024

Deploy Preview for cbioportalfrontend ready!

Name Link
🔨 Latest commit c15e61e
🔍 Latest deploy log https://app.netlify.com/sites/cbioportalfrontend/deploys/672924726632eb00074b10b2
😎 Deploy Preview https://deploy-preview-5038.cancerrevue.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hweej hweej requested review from alisman and inodb November 4, 2024 18:15
@hweej hweej linked an issue Nov 4, 2024 that may be closed by this pull request
projection: 'DETAILED',
}
// Fetch resource data for each studyId, then return combined results
const allResources = _(studyIds)
Copy link
Collaborator

Choose a reason for hiding this comment

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

the js array natively has map on it so you don't need to wrap in lodash here. this might seem confusing given what i said last week but the real message is that we should strive to use the semantically accurate and descriptive method. if it's just map, then no reason to use lodash. the other reason to use lodash is it's support for chaining, but we're not doing that here.

Copy link
Contributor Author

@hweej hweej Nov 4, 2024

Choose a reason for hiding this comment

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

Okay no problem I can change to the native map. I was just going off of what the previous author did in another function in this same file.

Copy link
Member

@inodb inodb left a comment

Choose a reason for hiding this comment

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

Looks like it's working from product perspective, thanks @hweej !

@inodb inodb added bug and removed enhancement labels Nov 4, 2024
@alisman alisman merged commit 1081908 into cBioPortal:master Nov 5, 2024
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enable multi-study query for resource data
3 participants