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

Give option to list unselected cases in the Custom Selection component #2936

Merged
merged 1 commit into from
Dec 31, 2019

Conversation

zhx828
Copy link
Member

@zhx828 zhx828 commented Dec 16, 2019

This solves cBioPortal/cbioportal#6361

This is an improvement pr of #2589

if (selectMode === SelectMode.SELECTED) {
selectedCases = this.props.selectedSamples;
} else {
const _selectedCaseIds = _.reduce(this.props.selectedSamples, (acc, next) => {
Copy link
Member

Choose a reason for hiding this comment

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

may be _.keyBy(this.props.selectedSamples,sample=>sample.uniqueSampleKey)

Copy link
Member Author

Choose a reason for hiding this comment

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

@kalletlak I can update. But do they have same performance? Or just for convenience?

Copy link
Member

Choose a reason for hiding this comment

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

just a cleaner way

@alisman
Copy link
Collaborator

alisman commented Dec 19, 2019

I think the UI is a tiny bit confusing now. I would suggest something like this it's more clear they are opposites of each other.

image

Copy link
Collaborator

@alisman alisman left a comment

Choose a reason for hiding this comment

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

See comment with screenshot

@zhx828
Copy link
Member Author

zhx828 commented Dec 19, 2019

@alisman very similar. fontawesome does not have the exact icon in your screenshot
Screen Shot 2019-12-19 at 5 44 18 PM

@alisman alisman merged commit 8920fc1 into cBioPortal:master Dec 31, 2019
@inodb
Copy link
Member

inodb commented Jan 3, 2020

@zhx828 @alisman @kalletlak it seems like this PR didn't go through product review? Let's discuss on engineering meeting how we can avoid accidentally merging things that still need review

@zhx828 zhx828 deleted the dup-2589 branch January 6, 2020 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants