-
Notifications
You must be signed in to change notification settings - Fork 323
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
Add profile filtering when adding Generic Entity IDs in Oncoprint #4596
Add profile filtering when adding Generic Entity IDs in Oncoprint #4596
Conversation
914e782
to
a225a6c
Compare
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.
@oplantalech Thanks again for fixing this issue, it looks good to me, just had some minor comments.
profileId | ||
); | ||
} | ||
|
||
@computed | ||
private get genericAssayTabs() { | ||
let tabs = []; | ||
if (this.isGenericAssayDataComplete && this.showGenericAssayTabs) { |
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 my fault, it looks like I forgot to add necessary checks in isGenericAssayDataComplete
function.
Could you add this.props.store.genericAssayEntitiesGroupByMolecularProfileId.isComplete
and this.selectedGenericAssayProfileIdByType.size > 0
into isGenericAssayDataComplete
function?
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.
Somehow adding this.selectedGenericAssayProfileIdByType.size > 0
does not show any Generic Assays, so I've only added the condition this.props.store.genericAssayEntitiesGroupByMolecularProfileId.isComplete
@dippindots Thank you for your review! I've implemented all your suggestions except one small thing (see comment). When it's all ready let me know and I'll squash all the commits before merging |
constructor(props: IAddTrackProps) { | ||
super(props); | ||
makeObservable(this); | ||
// Using the first profile as default profile option to initialize selectedGenericAssayProfileIdByType | ||
this.genericAssayEntityOptionsReaction = when( |
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.
not sure why this reaction is necessary
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 would think that you can accomplish default by checking for the selected type as part of the getter and if it is undefined, just selecting the first type
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.
@alisman Thanks for this comment. I've simplified the code deleting the reaction
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.
@oplantalech see my comment regarding the reaction
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.
@oplantalech see my comment regarding the reaction
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.
@oplantalech see my comment regarding the reaction
@@ -60,6 +67,13 @@ export const COUNT_PADDING_WIDTH = 17; | |||
export default class TracksMenu extends React.Component<IAddTrackProps, {}> { | |||
@observable tabId: Tab | string = Tab.CLINICAL; | |||
|
|||
private genericAssayEntityOptionsReaction: IReactionDisposer; | |||
|
|||
private selectedGenericAssayProfileIdByType = observable.map< |
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.
is it possible to have multiple profiles selected?
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.
0d891a6
to
a546714
Compare
@alisman Can we merge? |
@oplantalech Merged! Really appreciate you fixing this issue! |
Fix cBioPortal/cbioportal#10078