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

CustomButtons: fix studyName missing when viewing under ResultsViewPage #4982

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

pappde
Copy link
Contributor

@pappde pappde commented Aug 23, 2024

When launching a custom URL with the CustomButtons, the code extracts the "studyName" from the page context and passes it along. This was only working in the GroupComparisonPage context. The CustomButtons can also appear under the ResultsViewPage. This PR fixes that case.

This commit also sets studyName ="Combined Study" in the case where there are 2+ studies, following the pattern used elsewhere.

Checks

  • ran existing tests
  • ran prettier
  • BACKLOG: did not add a test for this new context

Notify reviewers

@alisman

…sultsViewPage

- this adds to the current support for loading under GroupComparisonPage
- Prior to this, under ResultsViewPage, the CustomButton would launch with the generic value "studyName == cBioPortal Data"
Copy link

netlify bot commented Aug 23, 2024

Deploy Preview for cbioportalfrontend ready!

Name Link
🔨 Latest commit d243882
🔍 Latest deploy log https://app.netlify.com/sites/cbioportalfrontend/deploys/66c91c46dce20b0008dd8ad8
😎 Deploy Preview https://deploy-preview-4982--cbioportalfrontend.netlify.app
📱 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.

@alisman alisman merged commit 441a3d5 into cBioPortal:master Aug 26, 2024
12 of 15 checks passed
@dippindots dippindots added the bug label Sep 10, 2024
Nelliney pushed a commit to Nelliney/cbioportal-frontend that referenced this pull request Sep 18, 2024
…ge (cBioPortal#4982)

* CustomButton: add support for extracting studyName when loading in ResultsViewPage

- this adds to the current support for loading under GroupComparisonPage
- Prior to this, under ResultsViewPage, the CustomButton would launch with the generic value "studyName == cBioPortal Data"

* Prettier

---------

Co-authored-by: Denis Papp <pappde@users.noreply.github.com>
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.

3 participants