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

react-mutation-mapper updates #4304

Merged
merged 3 commits into from
Aug 22, 2022
Merged

react-mutation-mapper updates #4304

merged 3 commits into from
Aug 22, 2022

Conversation

zhx828
Copy link
Member

@zhx828 zhx828 commented Jun 16, 2022

  • 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

Copy link
Member

@onursumer onursumer left a 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
Copy link
Member

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

Suggested change
showDescription
showDescription={true}

Copy link
Member Author

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

Copy link
Member

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}.

@zhx828
Copy link
Member Author

zhx828 commented Jul 6, 2022

@alisman could you review when you get a chance? The failing e2e tests are irrelevant to the pr.

props.indicator
)}
/>
props.type === OncoKbCardDataType.BIOLOGICAL ? (
Copy link
Collaborator

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

@alisman
Copy link
Collaborator

alisman commented Jul 8, 2022

@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.

@Luke-Sikina
Copy link
Member

Rebase, pass tests and let's merge this? @alisman @onursumer

@zhx828
Copy link
Member Author

zhx828 commented Aug 18, 2022

Rebase, pass tests and let's merge this? @alisman @onursumer

Let me rebase.

zhx828 added 3 commits August 18, 2022 08:29
- 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
@inodb inodb added the cl-external-api External API section of changelog. Changes to handle an external API (i.e. not cBioPortal API) label Aug 22, 2022
@inodb inodb merged commit 2a7dbd6 into cBioPortal:master Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cl-external-api External API section of changelog. Changes to handle an external API (i.e. not cBioPortal API) oncokb
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants