-
Notifications
You must be signed in to change notification settings - Fork 318
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
react-mutation-mapper updates #4304
Conversation
zhx828
commented
Jun 16, 2022
•
edited
Loading
edited
- Do not use Unknown as default cancer type
- The unknown will be interpreted as cancer type in OncoKB which will return inaccurate annotation
- When cancer type is not available, OncoKB will return all treatments for the mutation
- Show level associated cancer type instead of query cancer type in the OncoKBSummaryTable
- Create OncoKB LevelIcon and OncogenicIcon to reuse
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.
Looks good!
props.type === OncoKbCardDataType.BIOLOGICAL ? ( | ||
<OncogenicIcon | ||
oncogenicity={props.indicator?.oncogenic || ''} | ||
showDescription |
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 know it is minor but a prop without a value always bothers me
showDescription | |
showDescription={true} |
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 this the convention in portal? We don't specify true in oncokb anymore
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 don't think we have a strict rule about this, but I think the majority of the boolean props in portal codebase have the explicit ={true}
.
@alisman could you review when you get a chance? The failing e2e tests are irrelevant to the pr. |
props.indicator | ||
)} | ||
/> | ||
props.type === OncoKbCardDataType.BIOLOGICAL ? ( |
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.
in general lets avoid nested ternary. just too difficult to read
@zhx828 i want to wait till after 5.0.0 release to merge this. can't take any more conflicts and we need to meet tuesday deadline. |
Rebase, pass tests and let's merge this? @alisman @onursumer |
Let me rebase. |
- The unknown will be interpreted as cancer type in OncoKB which will return inaccurate annotation - When cancer type is not available, we should display all treatments for the mutation
Signed-off-by: Hongxin <[email protected]>