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] Filtering category runtime fields in advanced wizard #132916

Conversation

jgowdyelastic
Copy link
Member

@jgowdyelastic jgowdyelastic commented May 25, 2022

When using runtime fields in the advanced job wizard, category fields, e.g. keyword, text, should not be selectable as the detector's field_name

@@ -16,6 +16,13 @@ import {
} from '../types/fields';
import { ML_JOB_AGGREGATION } from '../constants/aggregation_types';

const categoryFieldTypes = [
Copy link
Member Author

Choose a reason for hiding this comment

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

moving this into common

@jgowdyelastic jgowdyelastic self-assigned this May 25, 2022
@jgowdyelastic jgowdyelastic marked this pull request as ready for review May 25, 2022 13:50
@jgowdyelastic jgowdyelastic requested a review from a team as a code owner May 25, 2022 13:50
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

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

Not related to the changes here, but noticed that runtime fields aren't sorted in some of the fields in the job wizards - the Split field in the multi-metric wizard, and the dropdowns in the rare wizard.

image

@qn895
Copy link
Member

qn895 commented May 25, 2022

Code LGTM 🎉

@jgowdyelastic
Copy link
Member Author

@peteharverson i've added sorting to all the field list dropdowns in c69a52d

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.

Edit to fix sorting LGTM

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

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.3MB 3.3MB +226.0B

History

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

cc @jgowdyelastic

@jgowdyelastic jgowdyelastic merged commit ad36a63 into elastic:main May 26, 2022
@jgowdyelastic jgowdyelastic added the auto-backport Deprecated: Automatically backport this PR after it's merged label May 26, 2022
@jgowdyelastic jgowdyelastic deleted the filtering-category-runtime-fields-in-advanced-wizard branch May 26, 2022 10:13
kibanamachine pushed a commit that referenced this pull request May 26, 2022
* [ML] Filtering category runtime fields in advanced wizard

* reverting accidentally commited code

* sorting fields in dropdowns

* removing accidentally committed code

(cherry picked from commit ad36a63)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.3

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request May 26, 2022
…132987)

* [ML] Filtering category runtime fields in advanced wizard

* reverting accidentally commited code

* sorting fields in dropdowns

* removing accidentally committed code

(cherry picked from commit ad36a63)

Co-authored-by: James Gowdy <jgowdy@elastic.co>
Co-authored-by: Spencer <spencer@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated: Automatically backport this PR after it's merged Feature:Anomaly Detection ML anomaly detection :ml release_note:fix v8.3.0 v8.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants