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

Add error alert type for non-catastrophic errors #4428

Merged
merged 6 commits into from
Dec 23, 2022

Conversation

alisman
Copy link
Collaborator

@alisman alisman commented Nov 21, 2022

We want to fail gracefully when oncock or GN services fail, allowing user to use the site but with knowledge that annotation is broken.
image

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

render() {
if (this.state.hasError) {
// You can render any custom fallback UI
console.log(this.state.error);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this console.log on purpose?

@alisman alisman force-pushed the oncokb-error branch 4 times, most recently from 66e7f03 to 89c7c1a Compare December 20, 2022 15:15
@alisman alisman merged commit 331b920 into cBioPortal:master Dec 23, 2022
@alisman alisman deleted the oncokb-error branch December 23, 2022 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants