-
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
[ML] Creates categorization job from pattern analysis #170567
[ML] Creates categorization job from pattern analysis #170567
Conversation
Pinging @elastic/ml-ui (:ml) |
x-pack/plugins/ml/public/embeddables/job_creation/aiops/flyout/create_job.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.
Tested and overall looks good. Just one question mark around adding an influencer for per-partition jobs.
x-pack/plugins/ml/public/application/jobs/new_job/job_from_pattern_analysis/quick_create_job.ts
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 latest changes and LGTM
<> | ||
<EuiButtonEmpty | ||
data-test-subj="aiopsLogCategorizationFlyoutAdJobButton" | ||
onClick={() => createADJob()} |
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.
Can't you just pass in createADJob
here without creating a wrapper function?
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.
Updated in d32017d
try { | ||
categorizationType = rison.decode(categorizationTypeRisonString) as CategorizationType; | ||
} catch (error) { | ||
categorizationType = CATEGORIZATION_TYPE.COUNT; |
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.
Seems like there's a pattern of catching and setting the value to an empty string - maybe it would be good to have a small util function that abstracts that?
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.
Good point, these can be cleaned up quite a lot.
Updated in d32017d
I've also changed the maps and lens versions of this file.
) { | ||
const locator = share.url.locators.get(ML_APP_LOCATOR); | ||
|
||
const url = await locator?.getUrl({ |
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.
Does there need to be a contingency for when locator is undefined? So the url doesn't end up as undefined?
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.
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.
Left a few comments but overall LGTM
Giving it the green checkmark to unblock
@elasticmachine merge upstream |
@elasticmachine merge upstream |
expected head sha didn’t match current head ref. |
…-job-from-pattern-analysis
…hub.com:jgowdyelastic/kibana into create-categorization-job-from-pattern-analysis
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Adds the ability to quickly create a categorisation anomaly detection job from the pattern analysis flyout.
Adds a new
created_by
IDcategorization-wizard-from-pattern-analysis
which can be picked up by telemetry.Creates a new package for sharing our AIOPs ui actions IDs. I think we should move the pattern analysis ID to this package too, but that can be done in a separate PR.
2023-11-09.17-13-03.2023-11-09.17_13_54.mp4
2023-11-09.17-27-29.2023-11-09.17_28_10.mp4