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] Fixes unnecessary too many buckets warning on anomaly chart embeddable #105043

Conversation

peteharverson
Copy link
Contributor

Summary

Ensures the 'too many buckets selected for display' warning icon isn't displayed unnecessarily on the anomaly chart embeddable.

Previously the warning would be displayed unnecessarily if the start time on the dashboard time picker didn't align with the start time of the first bucket displayed in the anomaly chart (note the chart displays the first full bucket with a start date no earlier than the start time of the dashboard).

Before:
101495_charts_before

After:
101495_charts_after

Note the fix also ensures the embedded charts have multiple x-axis gridlines whether the 'too many buckets' warning is displayed or not.
Before:
image

After:
image

Fixes #101495

@peteharverson peteharverson added review release_note:fix :ml Feature:Anomaly Detection ML anomaly detection v8.0.0 v7.14.0 auto-backport Deprecated: Automatically backport this PR after it's merged v7.15.0 labels Jul 9, 2021
@peteharverson peteharverson self-assigned this Jul 9, 2021
@peteharverson peteharverson requested a review from a team as a code owner July 9, 2021 10:43
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@peteharverson peteharverson requested a review from qn895 July 9, 2021 10:44
@qn895
Copy link
Member

qn895 commented Jul 9, 2021

Tested and LGTM 🎉

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

Code LGTM.

@peteharverson
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
ml 5.9MB 5.9MB +383.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @peteharverson

@peteharverson peteharverson merged commit b8dfcaf into elastic:master Jul 12, 2021
@peteharverson peteharverson deleted the ml-chart-embeddable-too-many-buckets branch July 12, 2021 10:32
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jul 12, 2021
…ddable (elastic#105043)

* [ML] Fixes unnecessary too many buckets warning on anomaly chart embeddable

* [ML] Update jest tests for number of axis ticks.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jul 12, 2021
…ddable (elastic#105043)

* [ML] Fixes unnecessary too many buckets warning on anomaly chart embeddable

* [ML] Update jest tests for number of axis ticks.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.14
7.x

The backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Jul 12, 2021
…ddable (#105043) (#105195)

* [ML] Fixes unnecessary too many buckets warning on anomaly chart embeddable

* [ML] Update jest tests for number of axis ticks.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Pete Harverson <peteharverson@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Jul 12, 2021
…ddable (#105043) (#105196)

* [ML] Fixes unnecessary too many buckets warning on anomaly chart embeddable

* [ML] Update jest tests for number of axis ticks.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Pete Harverson <peteharverson@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated: Automatically backport this PR after it's merged Feature:Anomaly Detection ML anomaly detection :ml release_note:fix review v7.14.0 v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Anomaly chart embeddable shows unnecessary too many buckets warning
5 participants