You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Backport
This will backport the following commits from `main` to `8.19`:
- [[SDH][APM] Handle create anomaly detection jobs failures
(elastic#219364)](elastic#219364)
<!--- Backport version: 9.6.6 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Sergi
Romeu","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-04-30T08:49:04Z","message":"[SDH][APM]
Handle create anomaly detection jobs failures (elastic#219364)\n\n##
Summary\n\nFixes elastic#157704\n\nThis PR shows the error toast when you try
to create an anomaly\ndetection job that throws an
error.\n\n\nhttps://github.com/user-attachments/assets/0c3ca1a5-36a6-4385-8cf1-473e689e9afb\n\n##
How to test\n1. Run kibana \n2.
Modify\n[this](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-apm-synthtrace/src/lib/utils/get_synthtrace_environment.ts)\nto
have a long environment name.\n3. Go to APM -> Settings -> Anomaly
detection.\n4. Try to create a job after running the synthtrace
scenario, it should\nfail.\n\n---------\n\nCo-authored-by: jennypavlova
<[email protected]>","sha":"da434192989436d55292433ccd0543364af57f20","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","apm:ml","sdh-linked","Team:obs-ux-infra_services","backport:version","v9.1.0","v8.19.0","v8.18.1","v9.0.1","v8.17.6"],"title":"[SDH][APM]
Handle create anomaly detection jobs
failures","number":219364,"url":"https://github.com/elastic/kibana/pull/219364","mergeCommit":{"message":"[SDH][APM]
Handle create anomaly detection jobs failures (elastic#219364)\n\n##
Summary\n\nFixes elastic#157704\n\nThis PR shows the error toast when you try
to create an anomaly\ndetection job that throws an
error.\n\n\nhttps://github.com/user-attachments/assets/0c3ca1a5-36a6-4385-8cf1-473e689e9afb\n\n##
How to test\n1. Run kibana \n2.
Modify\n[this](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-apm-synthtrace/src/lib/utils/get_synthtrace_environment.ts)\nto
have a long environment name.\n3. Go to APM -> Settings -> Anomaly
detection.\n4. Try to create a job after running the synthtrace
scenario, it should\nfail.\n\n---------\n\nCo-authored-by: jennypavlova
<[email protected]>","sha":"da434192989436d55292433ccd0543364af57f20"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","8.18","9.0","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/219364","number":219364,"mergeCommit":{"message":"[SDH][APM]
Handle create anomaly detection jobs failures (elastic#219364)\n\n##
Summary\n\nFixes elastic#157704\n\nThis PR shows the error toast when you try
to create an anomaly\ndetection job that throws an
error.\n\n\nhttps://github.com/user-attachments/assets/0c3ca1a5-36a6-4385-8cf1-473e689e9afb\n\n##
How to test\n1. Run kibana \n2.
Modify\n[this](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-apm-synthtrace/src/lib/utils/get_synthtrace_environment.ts)\nto
have a long environment name.\n3. Go to APM -> Settings -> Anomaly
detection.\n4. Try to create a job after running the synthtrace
scenario, it should\nfail.\n\n---------\n\nCo-authored-by: jennypavlova
<[email protected]>","sha":"da434192989436d55292433ccd0543364af57f20"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Co-authored-by: Sergi Romeu <[email protected]>
Co-authored-by: Dzmitry Lemechko <[email protected]>
0 commit comments