-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Add delete annotations option to delete and reset job modals #147537
[ML] Add delete annotations option to delete and reset job modals #147537
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to add a functional test to check the behaviour here, such as recreating a job after deleting / not deleting annotations and seeing if a user annotation was present on the recreated job.
label={i18n.translate( | ||
'xpack.ml.jobsList.deleteJobModal.deleteUserAnnotations', | ||
{ | ||
defaultMessage: 'Also delete annotations.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the text we have in the modal when deleting DFA jobs, maybe this could just be Delete annotations
?
<EuiSpacer /> | ||
<EuiSwitch | ||
label={i18n.translate('xpack.ml.jobsList.resetJobModal.deleteUserAnnotations', { | ||
defaultMessage: 'Also delete annotations.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the text we have in the modal when deleting DFA jobs, maybe this could just be Delete annotations
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from the comments about the copy from @peteharverson - LGTM ⚡
💚 Build Succeeded
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the functional tests! LGTM
…astic#147537) Adds a switch to the delete and reset job modals to tell elasticsearch to also delete any user created annotations when deleting or reseting the job. **Delete job** ![image](https://user-images.githubusercontent.com/22172091/207633225-714a0f13-b401-4921-8175-fabcf5da734b.png) **Reset job** ![image](https://user-images.githubusercontent.com/22172091/207633276-d7a1ef6c-ef5e-4b26-8df3-7be57626e8f6.png)
Adds a switch to the delete and reset job modals to tell elasticsearch to also delete any user created annotations when deleting or reseting the job.
Delete job
Reset job
Closes #145756