-
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
[Logs UI] Disable ML job setup form while setup is pending #54705
[Logs UI] Disable ML job setup form while setup is pending #54705
Conversation
Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui) |
💚 Build SucceededTo update your PR or re-run it, just comment with: |
setValidatedIndices, | ||
validationErrors = [], | ||
}: InitialConfigurationStepProps) => { | ||
const disabled = useMemo(() => !editableFormStatus.includes(setupStatus), [setupStatus]); |
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.
What's changing this setupStatus value and where?
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's being passed in as a property to the component. It originates from the job management hook that uses a combination of the ML API responses and the setup flow state to determine the overall setup state.
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.
More precisely, this is the file with the reducer that derives the setupState
: https://github.com/weltenwort/kibana/blob/d7bc217827d19aced14fe3f47b83a85567a41b96/x-pack/legacy/plugins/infra/public/containers/logs/log_analysis/log_analysis_module_status.tsx
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.
Ah ok so this value was already being set, gotcha. Looks good then!
…4705) This disables the configuration for in the log rate and categories setup screens while the setup process is ongoing.
Backports the following commits to 7.x: - [Logs UI] Disable ML job setup form while setup is pending (#54705)
…4705) This disables the configuration for in the log rate and categories setup screens while the setup process is ongoing.
Summary
This PR disables the configuration for in the log rate and categories setup screens while the setup process is ongoing.
closes #54555
Previews
Checklist
Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n supportDocumentation was added for features that require explanation or tutorialsUnit or functional tests were updated or added to match the most common scenariosThis was checked for keyboard-only and screenreader accessibility