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

[7.0] [ML] Adds missing error handling to annotations request. (#32384) #32489

Merged
merged 2 commits into from
Mar 13, 2019

Conversation

walterra
Copy link
Contributor

@walterra walterra commented Mar 5, 2019

Backports the following commits to 7.0:

@walterra walterra self-assigned this Mar 5, 2019
@walterra walterra added the :ml label Mar 5, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui

@elasticmachine
Copy link
Contributor

💔 Build Failed

@walterra
Copy link
Contributor Author

walterra commented Mar 5, 2019

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@walterra walterra force-pushed the backport/7.0/pr-32384 branch from 87045ed to bc2b186 Compare March 11, 2019 08:25
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@walterra walterra force-pushed the backport/7.0/pr-32384 branch from 3d51d4e to 77ea70e Compare March 12, 2019 08:47
@elasticmachine
Copy link
Contributor

💔 Build Failed

@walterra walterra force-pushed the backport/7.0/pr-32384 branch from 77ea70e to 8fccb03 Compare March 12, 2019 09:22
@elasticmachine
Copy link
Contributor

💔 Build Failed

@walterra walterra force-pushed the backport/7.0/pr-32384 branch from 8fccb03 to e3e5ca0 Compare March 12, 2019 12:42
@elasticmachine
Copy link
Contributor

💔 Build Failed

walterra and others added 2 commits March 12, 2019 15:57
- This adds more thorough error handling to retrieving annotations from the server to avoid breaking Anomaly Explorer when there's a problem retrieving annotations. The UI will silently fail and hide the annotations table if for whatever reasons annotations cannot be retrieved for the selected jobs (this could be permissions or setup related if e.g. the annotations feature index/aliases are not present). This is now the same behavior like in Single Metric Viewer. The browser console will still output an error message. This fixes an error scenario where Anomaly Explorer would fail to load if a user upgraded to 6.6 because the backend task wasn't run yet to create the annotation index/aliases.
- Disables annotations feature in Single Metric Viewer if annotations fail to load.
- Use componentDidUpdate and an update check instead of deprecated componentWillUpdate for updating the annotations table in jobs management.
@walterra walterra force-pushed the backport/7.0/pr-32384 branch from e3e5ca0 to 20b7083 Compare March 12, 2019 17:54
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@walterra walterra merged commit 2a6d5e0 into elastic:7.0 Mar 13, 2019
@walterra walterra deleted the backport/7.0/pr-32384 branch March 13, 2019 08:30
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