Skip to content

Comments

Fix Survival Attribute unable to render Group Logic (#11935)#5383

Open
kunalhemnani1 wants to merge 3 commits intocBioPortal:masterfrom
kunalhemnani1:fix/survival-attribute-group-logic
Open

Fix Survival Attribute unable to render Group Logic (#11935)#5383
kunalhemnani1 wants to merge 3 commits intocBioPortal:masterfrom
kunalhemnani1:fix/survival-attribute-group-logic

Conversation

@kunalhemnani1
Copy link
Contributor

@kunalhemnani1 kunalhemnani1 commented Feb 6, 2026

Fixes cBioPortal/cbioportal#11935 and cBioPortal/cbioportal#11976

Fixes Group Logic for Survival Attribute like ER Status and HER2 Status not appearing when applied filter
Changes proposed in this pull request:

Checks

  • Has tests or has a separate issue that describes the types of test that should be created. If no test is included it should explicitly be mentioned in the PR why there is no test.
  • The commit log is comprehensible. It follows 7 rules of great commit messages. For most PRs a single commit should suffice, in some cases multiple topical commits can be useful. During review it is ok to see tiny commits (e.g. Fix reviewer comments), but right before the code gets merged to master or rc branch, any such commits should be squashed since they are useless to the other developers. Definitely avoid merge commits, use rebase instead.
  • Is this PR adding logic based on one or more clinical attributes? If yes, please make sure validation for this attribute is also present in the data validation / data loading layers (in backend repo) and documented in File-Formats Clinical data section!

Any screenshots or GIFs?

Before :
image
After :
image

Notify reviewers

Read our Pull request merging
policy
. It can help to figure out who worked on the
file before you. Please use git blame <filename> to determine that
and notify them either through slack or by assigning them as a reviewer on the PR

@onursumer onursumer self-assigned this Feb 6, 2026
@onursumer onursumer force-pushed the fix/survival-attribute-group-logic branch from 48ad63e to 89e8159 Compare February 6, 2026 22:17
@onursumer onursumer added cl-bug Bug section of changelog. Bug fix study view labels Feb 6, 2026
@inodb inodb requested a review from Copilot February 9, 2026 15:41
Copy link
Contributor

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

Fixes Study View “User Selections” rendering for certain clinical filters whose attribute IDs end with _STATUS (e.g., ER_STATUS / HER2_STATUS) and were incorrectly treated as survival attributes for attributesMetaSet lookup, causing Group Logic pills to not render.

Changes:

  • Add a fallback lookup for chartMeta in UserSelections.renderClinicalDataFilters to use the original clinicalDataFilter.attributeId when the derived survival chart meta ID key isn’t found.

@dippindots dippindots self-requested a review February 10, 2026 16:30
Copy link
Collaborator

@dippindots dippindots left a comment

Choose a reason for hiding this comment

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

Thanks for submitting a PR! I just have one comment about how to handle this case.

@kunalhemnani1 kunalhemnani1 force-pushed the fix/survival-attribute-group-logic branch from 89e8159 to 7b4469e Compare February 19, 2026 10:12
* Fixes Group Logic for Survival Attribute like ER Status and HER2 Status not appearing when applied filter

* Add fallback to chartMeta lookup
* Fixes Group Logic for Survival Attribute like ER Status and HER2 Status not appearing when applied filter

* Resolves survival attributeId by checking attributesMetaSet existence before assignment
@dippindots dippindots force-pushed the fix/survival-attribute-group-logic branch from dcd0f6d to be34508 Compare February 19, 2026 20:30
@dippindots
Copy link
Collaborator

dippindots commented Feb 19, 2026

@kunalhemnani1 It looks good to me, I just rebased your PR. When we see tests are passing, I will merge it. Thanks!

@kunalhemnani1
Copy link
Contributor Author

kunalhemnani1 commented Feb 19, 2026

Thanks for the review appreciate you taking the time to look through my changes!

@kunalhemnani1 It looks good to me, I just rebased your PR. When we see tests are passing, I will merge it. Thanks!

* Fixes Group Logic for Survival Attribute like ER Status and HER2 Status not appearing when applied filter

* Resolves survival attributeId by checking attributesMetaSet existence before assignment

* Fix arm-level CNA filters not appearing when loaded via URL (#11976)

* Correct generic assay BINARY/CATEGORICAL dataType comparison to ensure charts render properly
@kunalhemnani1
Copy link
Contributor Author

kunalhemnani1 commented Feb 20, 2026

c5bc70a fixes cBioPortal/cbioportal#11976

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cl-bug Bug section of changelog. Bug fix study view

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] some clinical filters get applied but don't show up as a chip

3 participants