-
Notifications
You must be signed in to change notification settings - Fork 8k
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
[ObsUX] [APM] Make anomalyDetectorTypes optional #180717
[ObsUX] [APM] Make anomalyDetectorTypes optional #180717
Conversation
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
I think this is the appropriate fix for the problem; checking with team before approving. I suspect the "connector params" jest integration test to fail - you'll have to update that snapshot ... this is a new test that will catch these types of changes from now on ... run with
If that test doesn't fail, I think it means the rule type is not in the list in the module. And so should be added :-) |
Concur that this seems like an appropriate fix. Once this is live, rules that previously failed execution because of the validation should just start running again successfully. I understand there isn't supposed to be another 8.13 patch release, but of course there could be. Seems like we should backport this to 8.13. |
Another flavor that should work is this: anomalyDetectorTypes: schema.arrayOf(detectorsSchema, {
minSize: 1,
defaultValue: [],
}), Using This would allow you to treat the validated value as |
@elasticmachine merge upstream |
…r-types-parameter-optional
6cedb35
to
8e838df
Compare
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
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
Closes elastic#180699 When we add the `anomalyDetectorTypes` we introduced a breaking change, not making this new parameter optional. This PR is meant to make this parameter optional for backwards compatibility --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Carlos Crespo <carloshenrique.leonelcrespo@elastic.co> Co-authored-by: Nathan L Smith <nathan.smith@elastic.co> (cherry picked from commit 5e13701)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
2 similar comments
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…80896) # Backport This will backport the following commits from `main` to `8.13`: - [[ObsUX] [APM] Make anomalyDetectorTypes opcional (#180717)](#180717) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Miriam","email":"31922082+MiriamAparicio@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-04-16T10:30:17Z","message":"[ObsUX] [APM] Make anomalyDetectorTypes opcional (#180717)\n\nCloses #180699 we add the `anomalyDetectorTypes` we introduced a breaking change,\r\nnot making this new parameter optional.\r\nThis PR is meant to make this parameter optional for backwards\r\ncompatibility\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Carlos Crespo <carloshenrique.leonelcrespo@elastic.co>\r\nCo-authored-by: Nathan L Smith <nathan.smith@elastic.co>","sha":"5e13701360815a6aee29ce90669ff8bf26c61479","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:prev-minor","Team:obs-ux-infra_services","v8.14.0"],"title":"[ObsUX] [APM] Make anomalyDetectorTypes opcional","number":180717,"url":"#180717 [APM] Make anomalyDetectorTypes opcional (#180717)\n\nCloses #180699 we add the `anomalyDetectorTypes` we introduced a breaking change,\r\nnot making this new parameter optional.\r\nThis PR is meant to make this parameter optional for backwards\r\ncompatibility\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Carlos Crespo <carloshenrique.leonelcrespo@elastic.co>\r\nCo-authored-by: Nathan L Smith <nathan.smith@elastic.co>","sha":"5e13701360815a6aee29ce90669ff8bf26c61479"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"#180717 [APM] Make anomalyDetectorTypes opcional (#180717)\n\nCloses #180699 we add the `anomalyDetectorTypes` we introduced a breaking change,\r\nnot making this new parameter optional.\r\nThis PR is meant to make this parameter optional for backwards\r\ncompatibility\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Carlos Crespo <carloshenrique.leonelcrespo@elastic.co>\r\nCo-authored-by: Nathan L Smith <nathan.smith@elastic.co>","sha":"5e13701360815a6aee29ce90669ff8bf26c61479"}}]}] BACKPORT--> --------- Co-authored-by: Miriam <31922082+MiriamAparicio@users.noreply.github.com> Co-authored-by: Carlos Crespo <carloshenrique.leonelcrespo@elastic.co> Co-authored-by: Jon <jon@elastic.co>
Closes #180699
When we add the
anomalyDetectorTypes
we introduced a breaking change, not making this new parameter optional.This PR is meant to make this parameter optional for backwards compatibility