Skip to content
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

Merged

Conversation

walterra
Copy link
Contributor

@walterra walterra commented Nov 14, 2023

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:

image image

Updated transform wizard:

image

Checklist

@walterra walterra self-assigned this Nov 14, 2023
@walterra walterra force-pushed the 160593-ml-consolidate-data-view-creation-workflow branch 5 times, most recently from c6cafa2 to 76aa596 Compare November 22, 2023 11:49
@walterra walterra marked this pull request as ready for review November 22, 2023 13:03
@walterra walterra requested a review from a team as a code owner November 22, 2023 13:03
@walterra walterra marked this pull request as draft November 22, 2023 13:03
@walterra
Copy link
Contributor Author

I accidentally switched this one to review but it's not finished yet, reverting back to draft and will ping reviewers later again.

@walterra walterra force-pushed the 160593-ml-consolidate-data-view-creation-workflow branch 7 times, most recently from 0b031ff to 35ab565 Compare November 23, 2023 13:01
@walterra walterra changed the title [ML] Transforms/DFA: Consolidate data view creation workflow [ML] Transforms/DFA: Align data-view/destination-index creation workflow in wizards. Nov 23, 2023
@walterra walterra marked this pull request as ready for review November 23, 2023 17:04
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@walterra walterra added the Feature:Transforms ML transforms label Nov 23, 2023
@walterra walterra force-pushed the 160593-ml-consolidate-data-view-creation-workflow branch from eb2a81f to 49d6b79 Compare November 24, 2023 09:01
Copy link
Contributor

@peteharverson peteharverson left a 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.

@walterra
Copy link
Contributor Author

@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.

image

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest changes LGTM

@peteharverson peteharverson changed the title [ML] Transforms/DFA: Align data-view/destination-index creation workflow in wizards. [ML] Transforms/Data frame analytics: Align data view / destination index creation workflow in wizards. Nov 29, 2023
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
ml 1861 1867 +6
transform 388 392 +4
total +10

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
ml 3.6MB 3.6MB +871.0B
transform 402.2KB 403.9KB +1.7KB
total +2.6KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
ml 78.7KB 78.7KB +48.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
ml 558 557 -1
transform 31 32 +1
total -0

Total ESLint disabled count

id before after diff
ml 561 560 -1
transform 35 36 +1
total -0

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @walterra

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ⚡

@walterra walterra merged commit 9f86c05 into elastic:main Nov 29, 2023
30 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Nov 29, 2023
@walterra walterra deleted the 160593-ml-consolidate-data-view-creation-workflow branch November 29, 2023 18:40
@szabosteve szabosteve changed the title [ML] Transforms/Data frame analytics: Align data view / destination index creation workflow in wizards. [ML] Transforms/Data frame analytics: Aligns data view / destination index creation workflow in wizards. Dec 8, 2023
@szabosteve szabosteve changed the title [ML] Transforms/Data frame analytics: Aligns data view / destination index creation workflow in wizards. [ML] Transforms/Data frame analytics: Aligns data view / destination index creation workflow in wizards Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Data Frame Analytics ML data frame analytics features Feature:Transforms ML transforms :ml release_note:enhancement v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Transforms/DFA: Consolidate data view creation workflow
6 participants