Skip to content

Fix(query): default-select sole molecular profile (fixes #11569)#5518

Draft
Pragati5-DEBUG wants to merge 4 commits into
cBioPortal:masterfrom
Pragati5-DEBUG:fix/11569-single-profile-default
Draft

Fix(query): default-select sole molecular profile (fixes #11569)#5518
Pragati5-DEBUG wants to merge 4 commits into
cBioPortal:masterfrom
Pragati5-DEBUG:fix/11569-single-profile-default

Conversation

@Pragati5-DEBUG

@Pragati5-DEBUG Pragati5-DEBUG commented Apr 14, 2026

Copy link
Copy Markdown

Fix cBioPortal/cbioportal#11569

Summary

Follow-up fixes in this PR

  • allow fallback when profile filter map exists but is empty
  • reset stale profileFilterSetFromUrl on each URL parse

Demo

Verified on deploy preview: https://deploy-preview-5518.preview.cbioportal.org
single-profile-autoselect

Test plan

img

Multi-profile / mixed-cohort regression check (deploy-preview-5518): query behavior remains normal; no unintended forced single-profile selection.
image

URL profile override
https://deploy-preview-5518.preview.cbioportal.org/results/oncoprint?cancer_study_list=ovary_geomx_gray_foundation_2024&Z_SCORE_THRESHOLD=2.0&RPPA_SCORE_THRESHOLD=2.0&profileFilter=mrna_seq_read_counts_Zscores&case_set_id=ovary_geomx_gray_foundation_2024_all&gene_list=SOX9%2520RAN%2520TNK2%2520EP300%2520PXN%2520NCOA2%2520AR%2520NRIP1%2520NCOR1%2520NCOR2&geneset_list=%20&tab_index=tab_visualize&Action=Submit

image

@netlify

netlify Bot commented Apr 14, 2026

Copy link
Copy Markdown

Deploy Preview for cbioportalfrontend ready!

Name Link
🔨 Latest commit 6154481
🔍 Latest deploy log https://app.netlify.com/projects/cbioportalfrontend/deploys/69de0f1801dbb700089ddac2
😎 Deploy Preview https://deploy-preview-5518.preview.cbioportal.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 project configuration.

Your Name added 4 commits June 29, 2026 23:07
- Add getSingleSelectableProfileSuffixIfUnique: one suffix across selectable profiles

- QueryStore: apply only when selectedProfileIdSet is still empty (mixed cohort safe)

- getDefaultMolecularProfiles: fallback when no mutation/CNA/SV default but one profile

- StudyView onSubmitQuery: pass profileFilter when only one profile exists

Incorporates feedback from PR cBioPortal#5215 (store-level) and cBioPortal#5462 (no override when defaults exist).
Keep #11569 fallback active whenever selected profile set is empty, even if profileFilterSet is initialized but has no entries. This addresses single-profile studies where the map exists yet nothing is selected.
Clear profileFilterSetFromUrl on each setParamsFromUrl call and compact split values. This prevents stale URL filter state from suppressing #11569 single-profile fallback on subsequent query loads.
Select the default profile during molecular profile load using computed store getters (as in cBioPortal#5215) so the checkbox state is reflected immediately. Keep URL-driven profile selections authoritative by skipping auto-select when profile filters/ids are present.
@onursumer onursumer force-pushed the fix/11569-single-profile-default branch from 6154481 to d399125 Compare June 29, 2026 20:07
@onursumer onursumer marked this pull request as draft June 29, 2026 20:15
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.

When only RNA profile present in study, show it by default

1 participant