-
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] Add option for per-partition categorization to categorization job wizard #75061
Conversation
…r-partition # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
…port multiple jobs
…port multiple jobs
…r-partition # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
- Refactor context -> legacyclient - Update naming & formatted strings - Update schema - Update some functions to useCallback or useMemo - Rename perPartitionStopOnWarn
…tition # Conflicts: # x-pack/plugins/ml/common/util/job_utils.ts
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.
Couple more comments related to the new endpoints.
I have added validation for both when user adds a detector and for the validation screen in the latest change. The detectors now notify 3 types of error: Both checks should also now be in the final Job validation page: |
@@ -273,6 +277,14 @@ export class JobValidator { | |||
this._advancedValidations.categorizationFieldValid.valid = valid; | |||
} | |||
|
|||
public get categorizerMissingPerPartition() { |
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.
these should be checked in isPickFieldsStepValid
below to disable the Next
button.
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 38edcdd
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
* | ||
* @api {get} /api/ml/results/:jobId/categorizer_stats | ||
* @apiName GetCategorizerStats | ||
* @apiDescription Returns the categorizer snapshots for the specified job ID |
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.
Should this say categorizer stats
rather than snapshots
?
* | ||
* @api {get} /api/ml/results/category_stopped_partitions | ||
* @apiName GetCategoryStoppedPartitions | ||
* @apiDescription Returns list of partitions we stopped categorizing whens status changed to warn |
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.
Typo with whens
. Suggest changing this to something like
Returns information on the partitions that have stopped being categorized due to the categorization not working well. Can return either the list of stopped partitions for each job, or just the list of job IDs.
[ML] Update api descriptions to be clearer
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 edits and LGTM
💚 Build SucceededBuild metrics@kbn/optimizer bundle module count
async chunks size
page load bundle size
History
To update your PR or re-run it, just comment with: |
Summary
This is a fixed PR for the original one because I accidentally pulled in changes from Dima's PR.
#74592
Part of meta issue #73968 which adds the ability check for per-partition in categorization job creation wizard.
UI-related changes
Categorization job creation wizard
Advanced job creation wizard (when a category field is selected)
mlcategory
keyword have different values for partition_field_name then give error feedback upon validation stepAPI-related
api/ml/anomaly_detectors/{jobId}/categorizer_stats
for retrieving categorizer_stats documentsapi/ml/anomaly_detectors/{jobId}/stopped_partitions
to find out which partitions we stopped categorizing (searching for categorizer_stats documents in the job's results index)Checklist