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] Allows temporary data views in AD job wizards #170112

Conversation

jgowdyelastic
Copy link
Member

When creating a brand new job, temporary data views can be created and used in the wizard.

When cloning a job where the data view cannot be found, a new temporary data view is created to be used in the wizard.
This can happen if the data view used to create the original job has been deleted or the job was created with a temporary data view.

2023-10-30.11-09-20.2023-10-30.11_09_57.mp4

Also overrides the animation for the expanded rows in the AD jobs list which can cause strange behaviour when changing tabs in the expanded row.

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@@ -238,7 +238,7 @@ export default function ({ getService }: FtrProviderContext) {
await ml.testExecution.logTestStep(
'job cloning clicks the clone action and displays an error toast'
Copy link
Member

Choose a reason for hiding this comment

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

We probably should update the log test step here to reflect that it is opening the wizard

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated in 5773dd2

@peteharverson
Copy link
Contributor

We currently disable the link from the anomalies table to Discover if no data view exists for the job? Is it possible to link to Discover in such a way that Discover can create a temporary data view?

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 left a comment wondering if we can link to Discover when no data view exists?

@jgowdyelastic
Copy link
Member Author

jgowdyelastic commented Oct 31, 2023

Tested and overall looks good. Just left a comment wondering if we can link to Discover when no data view exists?

@peteharverson I've updated this here
If the data view cannot be found, I create a temporary one and then use that for the redirect to Discover.

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #41 / lens app - TSVB Open in Lens Top N "before each" hook for "should hide the "Edit Visualization in Lens" menu item for a sibling pipeline aggregations"

Metrics [docs]

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.5MB 3.5MB +51.0B

History

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

cc @jgowdyelastic

@qn895
Copy link
Member

qn895 commented Oct 31, 2023

Code LGTM 🎉

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 latest changes with link to Discover for temporary data views, and LGTM

@jgowdyelastic jgowdyelastic merged commit a509a3a into elastic:main Oct 31, 2023
28 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Oct 31, 2023
@jgowdyelastic jgowdyelastic deleted the allow-temprary-data-views-for-AD-job-creation branch October 31, 2023 18:24
delanni pushed a commit to delanni/kibana that referenced this pull request Nov 6, 2023
When creating a brand new job, temporary data views can be created and
used in the wizard.

When cloning a job where the data view cannot be found, a new temporary
data view is created to be used in the wizard.
This can happen if the data view used to create the original job has
been deleted or the job was created with a temporary data view.


https://github.com/elastic/kibana/assets/22172091/2b9c2125-2b0c-449d-a226-82267f64567b

Also overrides the animation for the expanded rows in the AD jobs list
which can cause strange behaviour when changing tabs in the expanded
row.

---------

Co-authored-by: Quynh Nguyen (Quinn) <43350163+qn895@users.noreply.github.com>
@szabosteve szabosteve changed the title [ML] Allow temporary data views in AD job wizards [ML] Allows temporary data views in AD job 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:Anomaly Detection ML anomaly detection :ml release_note:enhancement v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants