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] Anomaly Detection: Custom rule may prevent job cloning #77441

Closed
walterra opened this issue Sep 15, 2020 · 5 comments
Closed

[ML] Anomaly Detection: Custom rule may prevent job cloning #77441

walterra opened this issue Sep 15, 2020 · 5 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Anomaly Detection ML anomaly detection :ml v7.8.1

Comments

@walterra
Copy link
Contributor

Custom rules may trigger errors in the advanced wizard when cloning a job. Failing job validation may block a user from cloning the job.

On the first step of the job wizard, model memory estimation may fail. This is just a warning message and will not block the user from moving on with the wizard.

However, the validation step may fail completely and block the user from moving on:

image

The errors relate to parsing errors with custom rules:

{"statusCode":400,"error":"Bad Request","message":"[request body.analysisConfig.detectors.0.custom_rules.0.conditions]: expected value of type [array] but got [undefined]"}

Workaround

On the second wizard step "Pick fields", use the "Edit JSON" button to open the editing flyout and remove the custom_rules section:

Save the change and return to the wizard. The removed custom rules should allow you to pass the validation step.

Unfortunately you may hit a problem where the JSON editor's save button may stay grayed out even if you changed the configuration. I could work around that by also removing e.g. the custom URLs section.

@walterra walterra added bug Fixes for quality problems that affect the customer experience :ml Feature:Anomaly Detection ML anomaly detection v7.8.1 labels Sep 15, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@walterra
Copy link
Contributor Author

Note: This issue wasn't reproducable on latest master for me, further investigation needs to be done to identify affected versions.

@jgowdyelastic
Copy link
Member

Which version was this seen in?
This should have been fixed in 7.9.0 by #74676

@walterra
Copy link
Contributor Author

Thanks for the link, this was reported on 7.8.1, so closing the issue.

@TomonoriSoejima
Copy link
Contributor

I just also confirmed 7.9.0 has no issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Anomaly Detection ML anomaly detection :ml v7.8.1
Projects
None yet
Development

No branches or pull requests

4 participants