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] Ensures jobs from saved searches are cloned in advanced wizard #26002

Merged
merged 2 commits into from
Nov 21, 2018

Conversation

peteharverson
Copy link
Contributor

@peteharverson peteharverson commented Nov 21, 2018

Summary

The custom_settings created_by property is now no longer added for a job created in the Single Metric, Multi Metric or Population wizards if created from a saved search.

The wizards currently only accept an index pattern ID or a saved search ID, and not a query DSL, which meant that previously when cloning a job created in a wizard from a saved search, the datafeed query would be silently dropped.

Removing the custom_settings created_by property means that such jobs are now cloned in the Advanced Wizard, which does preserve the datafeed query set on the original job from the saved search.

Checklist

For maintainers

Fixes #25932

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui

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.

LGTM

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

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 ⚡️

@peteharverson peteharverson merged commit 1b3d6ae into elastic:master Nov 21, 2018
@peteharverson peteharverson deleted the ml-job-saved-search-clone branch November 21, 2018 15:53
peteharverson added a commit to peteharverson/kibana that referenced this pull request Nov 21, 2018
…lastic#26002)

* [ML] Ensures jobs from saved searches are cloned in advanced wizard

* [ML] Use useSavedSearch property for setting job created_by
peteharverson added a commit that referenced this pull request Nov 21, 2018
…26002) (#26028)

* [ML] Ensures jobs from saved searches are cloned in advanced wizard

* [ML] Use useSavedSearch property for setting job created_by
peteharverson added a commit to peteharverson/kibana that referenced this pull request Nov 23, 2018
…lastic#26002)

* [ML] Ensures jobs from saved searches are cloned in advanced wizard

* [ML] Use useSavedSearch property for setting job created_by
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

peteharverson added a commit that referenced this pull request Nov 23, 2018
…26002) (#26122)

* [ML] Ensures jobs from saved searches are cloned in advanced wizard

* [ML] Use useSavedSearch property for setting job created_by
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants