-
Notifications
You must be signed in to change notification settings - Fork 303
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
Results view mutations tab should show filtered and total counts in filter alert #4485
Conversation
@@ -10,13 +10,13 @@ export function getPatientSampleSummary(samples: any[], patients: any[]) { | |||
const sampleUnits = samples.length === 1 ? 'sample' : 'samples'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a comment about this whole function. i do realize this is not your code. but we could take opportunity to improve it. 1) probably this should be a component. 2) we should improve on the typing of the arguments. anytime we see use of any, we should try to fix it. in this case, patients looks like it's string[]. for samples, there is an existing type, SampleIdentifiers which i think will work here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sample and patients can be Sample[] or Patient[] respectively as well so I added those along with the SampleIdentifier[] and string[] types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments
import _ from 'lodash'; | ||
|
||
interface IPatientSampleSummaryProps { | ||
samples: Sample[] | SampleIdentifier[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gblaih i went ahead and merged but probably we should just pass in counts instead of this slightly odd signature. But it's not important enough to bother.
Fix issue cBioPortal/cbioportal#9958