-
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
[ML] Fix Anomaly Explorer charts time range to obey time picker range #80317
[ML] Fix Anomaly Explorer charts time range to obey time picker range #80317
Conversation
Pinging @elastic/ml-ui (:ml) |
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, also did a local test to verify fixed spans for the chart.
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
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.
Jest Test Update LGTM
💚 Build SucceededMetrics [docs]async chunks size
History
To update your PR or re-run it, just comment with: |
…elastic#80317) * [ML] Fix Anomaly Explorer charts time range to obey time picker range * [ML] Fix explorer_charts_container_service Jest tests
…elastic#80317) * [ML] Fix Anomaly Explorer charts time range to obey time picker range * [ML] Fix explorer_charts_container_service Jest tests
Summary
Fixes the time range used for plotting the anomaly charts in the Anomaly Explorer so that the min / max observe the time range set in the global time picker. Previously, as shown in #70244, depending on the bucket span of the job(s) and the time range in the view, the charts could extend past the range set in the time picker.
Also renamed the earliest / latest arguments of the
anomalyDataChange
andcalculateChartRange
functions to make it clearer that they relate to the times selected in the swim lane, and not the time picker earliest / latest.Before:

After:

Note that the time span of the grey highlighted box in these charts is two hours, whereas it should be the same as the time range selected in the swim lane. This is being fixed in #80299.
Related to #70244