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

[ML] Single metric viewer: Fix detector/entity selection #44772

Merged
merged 2 commits into from
Sep 4, 2019

Conversation

walterra
Copy link
Contributor

@walterra walterra commented Sep 4, 2019

Summary

Fixes #43681.

Follow-up to #41739.

Part of #42909.

This fixes switching to another detector on single metric viewer. There is no longer a Refresh button next to the dropdowns, instead the charts will reload when one of the dropdowns (detector or entity selection) changes.

Review note: This is close to callback hell but I wanted to make sure we don't run into race conditions with the existing code so to make sure methods run in the intended order without a huge refactor this updated code makes use of nested callbacks for setState(state, callback).

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@walterra walterra added bug Fixes for quality problems that affect the customer experience :ml Feature:Anomaly Detection ML anomaly detection v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.4.0 v7.5.0 labels Sep 4, 2019
@walterra walterra requested a review from a team as a code owner September 4, 2019 13:37
@walterra walterra self-assigned this Sep 4, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui

Copy link
Member

@jgowdyelastic jgowdyelastic left a comment

Choose a reason for hiding this comment

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

Tested and fixes #43681
LGTM

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

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

LGTM ⚡️

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@walterra walterra merged commit cf8dfbf into elastic:master Sep 4, 2019
@walterra walterra deleted the ml-fix-detector-selection branch September 4, 2019 15:31
walterra added a commit to walterra/kibana that referenced this pull request Sep 4, 2019
This fixes switching to another detector on single metric viewer. There is no longer a Refresh button next to the dropdowns, instead the charts will reload when one of the dropdowns (detector or entity selection) changes.
walterra added a commit to walterra/kibana that referenced this pull request Sep 4, 2019
This fixes switching to another detector on single metric viewer. There is no longer a Refresh button next to the dropdowns, instead the charts will reload when one of the dropdowns (detector or entity selection) changes.
walterra added a commit that referenced this pull request Sep 4, 2019
…4781)

This fixes switching to another detector on single metric viewer. There is no longer a Refresh button next to the dropdowns, instead the charts will reload when one of the dropdowns (detector or entity selection) changes.
walterra added a commit that referenced this pull request Sep 4, 2019
…4782)

This fixes switching to another detector on single metric viewer. There is no longer a Refresh button next to the dropdowns, instead the charts will reload when one of the dropdowns (detector or entity selection) changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Anomaly Detection ML anomaly detection :ml release_note:skip Skip the PR/issue when compiling release notes v7.4.0 v7.5.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Single metric viewer gets confused when changing detector
4 participants