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

SV: Fix group refreshing issue on checkbox selection #3922

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

kalletlak
Copy link
Member

@kalletlak kalletlak commented Aug 13, 2021

Fix cBioPortal/cbioportal#8616

Problem: same object (_selectedComparisonGroups) is used for both creating and selecting groups. This is causing list to re-render whenever selection is made.

Solution: use different object to track created groups and selected groups

promises.push(comparisonClient.getGroup(groupId));
}
const promises = missingGroupIds.map(groupId =>
comparisonClient.getGroup(groupId)
Copy link
Collaborator

Choose a reason for hiding this comment

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

comment getGroup will make a new group if it doesn't exist?

Copy link
Member Author

Choose a reason for hiding this comment

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

It doesn't make new group, if gets group by id if it is present.

@alisman
Copy link
Collaborator

alisman commented Aug 18, 2021

@kalletlak i'm curious why tracking newly created groups is important in fixing a bug that doesn't seem to involve new group creation (appears when selecting a group)? maybe put explaination in main comment

@alisman alisman merged commit 1ee6bb8 into cBioPortal:master Aug 19, 2021
@kalletlak kalletlak deleted the fix-8616 branch July 8, 2024 01:23
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.

groups dropdown refreshes with each group selection
3 participants