-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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: allow failed job to be stopped by force via the UI #74710
[ML] DF Analytics: allow failed job to be stopped by force via the UI #74710
Conversation
Pinging @elastic/ml-ui (:ml) |
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.
LGTM, just added a small suggestion about the button text in the modal.
confirmButtonText={i18n.translate( | ||
'xpack.ml.dataframe.analyticsList.forceStopModalStartButton', | ||
{ | ||
defaultMessage: 'Stop', |
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.
Suggest to make the button text Force stop
.
Can you please loop in @lcawl ? I think it is worth succinctly explaining that a force stop will reset the state of the job and allow you to restart it again, assuming you've rectified the problem. |
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.
I worked with @gchaps on these suggestions, so if you like them credit goes to the guru!
<EuiOverlayMask> | ||
<EuiConfirmModal | ||
title={i18n.translate('xpack.ml.dataframe.analyticsList.forceStopModalTitle', { | ||
defaultMessage: 'Force stop {analyticsId}', |
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.
In case the job name is long, can we put it in the body of the message instead of the title?
defaultMessage: 'Force stop {analyticsId}', | |
defaultMessage: 'Force this job to stop?', |
confirmButtonText={i18n.translate( | ||
'xpack.ml.dataframe.analyticsList.forceStopModalStartButton', | ||
{ | ||
defaultMessage: 'Stop', |
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.
Agree with suggestion from @walterra
defaultMessage: 'Stop', | |
defaultMessage: 'Force stop', |
<p> | ||
<FormattedMessage | ||
id="xpack.ml.dataframe.analyticsList.forceStopModalBody" | ||
defaultMessage="The analytics job is in the failed state, do you want to force stop {analyticsId}?" |
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.
If we want to hint at some of the next steps, I suggest something like this:
defaultMessage="The analytics job is in the failed state, do you want to force stop {analyticsId}?" | |
defaultMessage="{analyticsId} is in a failed state. You must stop the job and fix the failure." |
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.
LGTM
3ecc90a
to
9c1e1fd
Compare
💚 Build SucceededBuild metrics@kbn/optimizer bundle module count
async chunks size
History
To update your PR or re-run it, just comment with: |
…elastic#74710) * allow force stop from ui if job is failed * update wording in confirm modal
* master: (23 commits) Adding API test for custom link transaction example (elastic#74238) [Uptime] Singular alert (elastic#74659) Revert "attempt excluding a codeowners directory" (elastic#75023) [Metrics UI] Remove TSVB dependency from Metrics Explorer APIs (elastic#74804) Remove degraded state from ES status service (elastic#75007) [Reporting/Functional] unskip pagination test (elastic#74973) [Resolver] Stale query string values are removed when resolver's component instance ID changes. (elastic#74979) Add public url to Workplace Search plugin (elastic#74991) [Reporting] Update more Server Types for TaskManager (elastic#74915) [I18n] verify select icu-message options are in english (elastic#74963) Make data.search.aggs available on the server. (elastic#74472) [Security Solution][Resolver] Graph Control Tests and Update Simulator Selectors (elastic#74680) attempt excluding a codeowners directory [ML] DF Analytics: allow failed job to be stopped by force via the UI (elastic#74710) Add kibana-core-ui-designers team (elastic#74970) [Metrics UI] Fix inventory footer misalignment (elastic#74707) Remove legacy optimizer (elastic#73154) Update design-specific GH code-owners (elastic#74877) skip test Reporting paginates content elastic#74922 [Metrics UI] Add Jest tests for alert previews (elastic#74890) ...
Summary
Fixes #72661
NOTE: Feedback on modal wording is welcome.
This PR replaces the
Start
action in the analytics list with theStop
action when the job is in a failed state asStart
action will fail for a failed job state.If the job is in a failed state, the user will now see the
Stop
action which will allow the user to force stop the job. A confirmation modal will appear.Checklist
Delete any items that are not applicable to this PR.