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 swim lane time selection with a single time point and the Watcher URL #89125

Merged
merged 8 commits into from
Jan 26, 2021

Conversation

darnautov
Copy link
Contributor

@darnautov darnautov commented Jan 25, 2021

Summary

During interaction with anomaly swim lane, cell selection always updates the URL state with appropriate time boundaries. But the watcher URL in the email template populate a single time point only. This PR fixes this scenario by extending the selection with a bucket span size. It also fixes the names of the URL variables used in the Watcher email template.

Checklist

@darnautov darnautov 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.11.0 v7.10.3 labels Jan 25, 2021
@darnautov darnautov self-assigned this Jan 25, 2021
@darnautov darnautov requested a review from a team as a code owner January 25, 2021 12:43
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@darnautov
Copy link
Contributor Author

@elasticmachine merge upstream

@darnautov darnautov changed the title [ML] Fix swim lane time selection with a single time point [ML] Fix swim lane time selection with a single time point and the Watcher URL Jan 25, 2021
@darnautov
Copy link
Contributor Author

@elasticmachine merge upstream

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 on master, 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.

Latest changes LGTM, great to have the support for legacy params.

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 latest edit to work with legacy params and LGTM

@darnautov
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 6.5MB 6.5MB +494.0B

History

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

@darnautov darnautov merged commit b35a4e6 into elastic:master Jan 26, 2021
@darnautov darnautov deleted the ML-fix-watcher-url-time-format branch January 26, 2021 16:36
darnautov added a commit to darnautov/kibana that referenced this pull request Jan 26, 2021
…tcher URL (elastic#89125)

* [ML] fix swim lane selected times with only start boundaries

* [ML] unit test

* [ML] update url variables

* [ML] selectedLanes to an array type

* [ML] handle legacy query params
darnautov added a commit to darnautov/kibana that referenced this pull request Jan 26, 2021
…tcher URL (elastic#89125)

* [ML] fix swim lane selected times with only start boundaries

* [ML] unit test

* [ML] update url variables

* [ML] selectedLanes to an array type

* [ML] handle legacy query params
darnautov added a commit to darnautov/kibana that referenced this pull request Jan 26, 2021
…tcher URL (elastic#89125)

* [ML] fix swim lane selected times with only start boundaries

* [ML] unit test

* [ML] update url variables

* [ML] selectedLanes to an array type

* [ML] handle legacy query params

# Conflicts:
#	x-pack/plugins/ml/public/application/jobs/jobs_list/components/create_watch_flyout/email.html
darnautov added a commit that referenced this pull request Jan 27, 2021
…tcher URL (#89125) (#89326)

* [ML] fix swim lane selected times with only start boundaries

* [ML] unit test

* [ML] update url variables

* [ML] selectedLanes to an array type

* [ML] handle legacy query params

# Conflicts:
#	x-pack/plugins/ml/public/application/jobs/jobs_list/components/create_watch_flyout/email.html
darnautov added a commit that referenced this pull request Jan 27, 2021
…tcher URL (#89125) (#89324)

* [ML] fix swim lane selected times with only start boundaries

* [ML] unit test

* [ML] update url variables

* [ML] selectedLanes to an array type

* [ML] handle legacy query params
darnautov added a commit that referenced this pull request Jan 27, 2021
…tcher URL (#89125) (#89323)

* [ML] fix swim lane selected times with only start boundaries

* [ML] unit test

* [ML] update url variables

* [ML] selectedLanes to an array type

* [ML] handle legacy query params
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:fix v7.10.3 v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants