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
Independent display logic for sample treatments chart #3455
Independent display logic for sample treatments chart #3455
Conversation
@@ -6924,6 +6926,17 @@ export class StudyViewPageStore { | |||
}); | |||
} | |||
|
|||
@computed |
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.
why do we put these in computed (instead of treating them like patientTreatments below as an instance property)? @Luke-Sikina you might just have copied an existing thing, but i'm curious.
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.
I'm not going to resolve this comment just in case it's still relevant, but I think these do need to be computed now, as this.studyIds
is an observable.
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.
yes but they would be computed either way. i'm just curious why it is we treat these different than we normally treate remoteData, at least in other stores. probably there isn't an answer.
normal way (note that this will have same computed behavior):
readonly localPro = remotedata(...)
return remoteData({ | ||
invoke: () => { | ||
return defaultClient.getContainsSampleTreatmentDataUsingPOST({ | ||
studyViewFilter: this.initialFilters, |
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.
Question, isn't studyIds not enough to check they have treatments data or not? do we need studyViewFilter?
584810d
to
e874082
Compare
- Sample treatments sometimes should not be shown when patient treatments are shown - This PR uses a new API endpoint to determine when sample treatments should be shown - Also, unknown treatments are no longer shows on the frontend - Switched from passing a filter object to passing a list a study ids to the display treatment endpoints
e874082
to
47b18f4
Compare
Backend changes here: cBioPortal/cbioportal#7960
Fix cBioPortal/cbioportal#7928
Describe changes proposed in this pull request:
are shown