-
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] Provide index name pattern choice during ML job setup #48231
[Logs UI] Provide index name pattern choice during ML job setup #48231
Conversation
Pinging @elastic/infra-logs-ui (Team:infra-logs-ui) |
💔 Build Failed
|
8cb973d
to
1b003d7
Compare
💔 Build Failed
|
1b003d7
to
30a1255
Compare
💔 Build Failed
|
30a1255
to
16b595c
Compare
💔 Build Failed
|
16b595c
to
f3aa009
Compare
💔 Build Failed |
💚 Build Succeeded |
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.
Nice work! I did add some comments on small details I found on a first pass. I also found a small nitpicky detail when playing with the UI (see comment above), but overall looks good.
Please confirm if the comments I proposed make sense. Otherwise I can approve straight away
x-pack/legacy/plugins/infra/public/pages/logs/analysis/setup/analysis_setup_indices_form.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/infra/public/containers/logs/log_analysis/log_analysis_status_state.tsx
Show resolved
Hide resolved
x-pack/legacy/plugins/infra/public/containers/logs/log_analysis/log_analysis_setup_state.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/infra/public/pages/logs/analysis/setup/analysis_setup_indices_form.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/infra/public/pages/logs/analysis/setup/analysis_setup_indices_form.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/infra/public/pages/logs/analysis/setup/steps/initial_configuration.tsx
Outdated
Show resolved
Hide resolved
Thanks for the quick review. That all makes a lot of sense - I'll tackle it next thing in the morning 👍 |
@weltenwort just wanted to say that the screenshots here look really good, I'm super happy with this "best we can do" solution to this onboarding problem. |
I just wanted to comment on that as I was struggling with setting up ML jobs with sample data only as |
@afgomez I made some changes based on your feedback:
Let me know what you think. |
💚 Build Succeeded |
@weltenwort thanks!
Makes sense. If for whatever reason this hurts in the future (i.e. we need to add more error types and we see too much duplication) we can find a different way. I'll approve |
@elasticmachine update branch |
💚 Build Succeeded |
(LGTM 👌) |
…tic#48231) This fixes elastic#48219 by adding the option for the user to select a subset of the configured log indices during the setup process. It also surfaces the errors returned by Kibana when the setup fails.
…tic#48231) This fixes elastic#48219 by adding the option for the user to select a subset of the configured log indices during the setup process. It also surfaces the errors returned by Kibana when the setup fails.
Backports the following commits to 7.x: - [Logs UI] Provide index name pattern choice during ML job setup (#48231)
Backports the following commits to 7.5: - [Logs UI] Provide index name pattern choice during ML job setup (#48231)
Summary
This fixes #48219 by adding the option for the user to select a subset of the configured log indices during the setup process. It also surfaces the errors returned by Kibana when the setup fails.
Description
The subset is derived by splitting the configured log index name pattern on commas and presenting the in a checkbox group. That split tries to emulate what happens to the index setting in ML datafeeds upon start.
A naive validation checks that at least one sub-pattern is selected, but it doesn't check for validity of the individual patterns.
This change also required a change to the logic of how outdated job configurations are detected. Instead of an exact match, a job configuration is now considered outdated if any of the sub-patterns used during deployment is not part of the log indices set in the source configuration anymore.
The errors returned by the job setup API are now presented in error call-outs, because they give hints as to the exact pattern that caused the deployment to fail.
Previews
Checklist
Documentation was added for features that require explanation or tutorialsUnit or functional tests were updated or added to match the most common scenarioswill be added in a follow-up PR