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] Transforms/Data frame analytics: Aligns data view / destination index creation workflow in wizards #171202
[ML] Transforms/Data frame analytics: Aligns data view / destination index creation workflow in wizards #171202
Conversation
c6cafa2
to
76aa596
Compare
I accidentally switched this one to review but it's not finished yet, reverting back to draft and will ping reviewers later again. |
0b031ff
to
35ab565
Compare
Pinging @elastic/ml-ui (:ml) |
eb2a81f
to
49d6b79
Compare
x-pack/packages/ml/data_view_utils/components/create_data_view_switch.tsx
Show resolved
Hide resolved
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.
Tested and overall looks good. Just need to add the 'Create data view' switch into the DFA advanced editor.
@peteharverson Thanks for catching the missing data view section in the JSON editor. Added the section to create data views back to the JSON editor variant. Also updated the toggle to auto-start the DFA job from checkbox to switch to be in line with the updated data view UI. |
...ication/data_frame_analytics/pages/analytics_creation/components/create_step/create_step.tsx
Outdated
Show resolved
Hide resolved
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.
Latest changes LGTM
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @walterra |
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 ⚡
Summary
Fixes #160593.
Consolidates UI elements and backend code to create/delete data views and destination indices related to transforms and data frame analytics.
We ended up with two different approaches for creating data views in the wizards for transforms and data frame analytics, the original reason was we were not aware of the
allowNoIndex: true
setting and worked around that in different ways.This PR aligns UI workflows and moves related code to a new package
@kbn/ml-data-view-utils
for data views and@kbn/ml-creation-wizard-utils
for the destination index form. The latter might be used for other shared components across wizard..In Data Frame Analytics, the checkbox to create a data view was removed from the last "Create" step, instead the option to create a data view was moved to the "Details" step.
In Transforms, the UI component to create the destination index was brought over from DFA where there is a switch option to automatically use the job ID as the name for the destination index by default.
Updated data frame analytics wizard:
Updated transform wizard:
Checklist