-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Discover] Add EuiErrorBoundary to catch errors in the functionals #117976
Conversation
@elasticmachine merge upstream |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
@@ -96,21 +97,23 @@ export function DiscoverMainApp(props: DiscoverMainProps) { | |||
}, [resetSavedSearch, savedSearch]); | |||
|
|||
return ( | |||
<DiscoverLayoutMemoized |
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.
LGTM, only thing to consider, adding the EuiErrorBoundary
in discover_router.tsx
would also cover executions in routing, context and doc view. So it would be one EuiErrorBoundray
to catch em all 🧙
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.
Would that not be too aggressive?
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.
Would there be a disadvantage to catch more potential failures causing a empty Discover rendering? Seen other plugins doing it too:
<EuiErrorBoundary> |
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.
change LGTM, will test and then approve
💛 Build succeeded, but was flaky
Test Failures
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
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.
…lastic#117976) * [Discover] Add error boundary to cath errors in functionals * Fix invalid import * Move <EuiErrorBoundary> to router Co-authored-by: Kibana Machine <[email protected]>
…117976) (#118664) * [Discover] Add error boundary to cath errors in functionals * Fix invalid import * Move <EuiErrorBoundary> to router Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
…lastic#117976) * [Discover] Add error boundary to cath errors in functionals * Fix invalid import * Move <EuiErrorBoundary> to router Co-authored-by: Kibana Machine <[email protected]>
…117976) * [Discover] Add error boundary to cath errors in functionals * Fix invalid import * Move <EuiErrorBoundary> to router Co-authored-by: Kibana Machine <[email protected]>
Summary
The primary use of this is to catch the error in:
#81576
This test occasionally fails, with a completely blank screen and is extremely flaky, so hard to reproduce. But the
EuiErrorBoundary
should helps us with other failures as well.Checklist
Delete any items that are not applicable to this PR.
Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:
For maintainers