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] Fix Anomaly Explorer annotations misaligned #105696

Merged
merged 6 commits into from
Jul 15, 2021

Conversation

qn895
Copy link
Member

@qn895 qn895 commented Jul 14, 2021

Summary

This PR fixes annotations being misaligned in the Anomaly Explorer view.

Before
Screen Shot 2021-07-14 at 17 57 28

After
Screen Shot 2021-07-14 at 17 46 55

@qn895 qn895 added bug Fixes for quality problems that affect the customer experience release_note:fix :ml Feature:Anomaly Detection ML anomaly detection v8.0.0 v7.14.0 v7.15.0 labels Jul 14, 2021
@qn895 qn895 requested review from darnautov and peteharverson July 14, 2021 22:58
@qn895 qn895 self-assigned this Jul 14, 2021
@qn895 qn895 requested a review from a team as a code owner July 14, 2021 22:58
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@peteharverson
Copy link
Contributor

Not related to the changes here, but in the Single Metric Viewer the annotations lane extends to the end of the right hand brush handle, and isn't aligned to the end of the chart area, as it is on the left hand side.

image

Copy link
Contributor

@peteharverson peteharverson 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 LGTM. Just left a comment on the annotations lane in the SMV.

@qn895
Copy link
Member Author

qn895 commented Jul 15, 2021

Not related to the changes here, but in the Single Metric Viewer the annotations lane extends to the end of the right hand brush handle, and isn't aligned to the end of the chart area, as it is on the left hand side.

@peteharverson Thanks for testing. I also added a quick fix for it here.

Before

Screen Shot 2021-07-15 at 10 12 13

After
Screen Shot 2021-07-15 at 10 11 58

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Latest edits LGTM

Copy link
Contributor

@darnautov darnautov left a comment

Choose a reason for hiding this comment

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

LGTM

@qn895 qn895 added the auto-backport Deprecated - use backport:version if exact versions are needed label Jul 15, 2021
@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 +3.2KB

History

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

cc @qn895

@qn895 qn895 merged commit 78d6fc5 into elastic:master Jul 15, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 15, 2021
* Move swimlane annotation out of container, add new axis width prop

* [ML] Fix alignment if some annotations overflow

* [ML] Move utils function to inside anomaly_timeline_service

* [ML] Fix y chart overflow

* [ML] Enforce stricter check on isOverallSwimlaneData

* [ML] Update logic to check if only one label
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 15, 2021
* Move swimlane annotation out of container, add new axis width prop

* [ML] Fix alignment if some annotations overflow

* [ML] Move utils function to inside anomaly_timeline_service

* [ML] Fix y chart overflow

* [ML] Enforce stricter check on isOverallSwimlaneData

* [ML] Update logic to check if only one label
@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 15, 2021
* Move swimlane annotation out of container, add new axis width prop

* [ML] Fix alignment if some annotations overflow

* [ML] Move utils function to inside anomaly_timeline_service

* [ML] Fix y chart overflow

* [ML] Enforce stricter check on isOverallSwimlaneData

* [ML] Update logic to check if only one label

Co-authored-by: Quynh Nguyen <[email protected]>
kibanamachine added a commit that referenced this pull request Jul 16, 2021
* Move swimlane annotation out of container, add new axis width prop

* [ML] Fix alignment if some annotations overflow

* [ML] Move utils function to inside anomaly_timeline_service

* [ML] Fix y chart overflow

* [ML] Enforce stricter check on isOverallSwimlaneData

* [ML] Update logic to check if only one label

Co-authored-by: Quynh Nguyen <[email protected]>
@qn895 qn895 deleted the ml-fix-annotations-alignment branch July 21, 2021 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed bug Fixes for quality problems that affect the customer experience Feature:Anomaly Detection ML anomaly detection :ml release_note:fix v7.14.0 v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants