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] DF Analytics: add ability to edit job for fields supported by API #70489

Merged

Conversation

alvarezmelissa87
Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 commented Jul 1, 2020

Summary

Related meta issue: #70354

Adds Edit action to analytics list:

editAction

Able to edit description, allow_lazy_start, and model_memory_limit (mml only if job is stopped). Initial values default to what the current values are in the config.

editFormPic

Validate mml:

validatemml

Disable update if mml empty or invalid:

updateDisabled

Checklist

Delete any items that are not applicable to this PR.

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@alvarezmelissa87 alvarezmelissa87 force-pushed the ml-dfanalytics-edit-job branch from d178c4c to 81907a1 Compare July 2, 2020 17:24
@alvarezmelissa87 alvarezmelissa87 force-pushed the ml-dfanalytics-edit-job branch from 1086c4f to 9ac1b43 Compare July 6, 2020 14:29
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 edits and LGTM

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

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

@qn895 qn895 self-requested a review July 6, 2020 19:04
@qn895
Copy link
Member

qn895 commented Jul 6, 2020

LGTM 👍

@alvarezmelissa87 alvarezmelissa87 merged commit a4340f0 into elastic:master Jul 6, 2020
alvarezmelissa87 added a commit to alvarezmelissa87/kibana that referenced this pull request Jul 6, 2020
elastic#70489)

* wip: add edit action to dfanalytics table

* add update endpoint and edit flyout

* show success and error toasts. close flyout and refresh on success

* show permission message in edit action

* update types

* disable update button if mml not valid

* show error in toast, init values are config values

* fix undefined check for allow lazy start

* prevent update if mml is empty
@alvarezmelissa87 alvarezmelissa87 deleted the ml-dfanalytics-edit-job branch July 6, 2020 19:11
alvarezmelissa87 added a commit that referenced this pull request Jul 6, 2020
#70489) (#70863)

* wip: add edit action to dfanalytics table

* add update endpoint and edit flyout

* show success and error toasts. close flyout and refresh on success

* show permission message in edit action

* update types

* disable update button if mml not valid

* show error in toast, init values are config values

* fix undefined check for allow lazy start

* prevent update if mml is empty
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