# Backport
This will backport the following commits from `main` to `8.12`:
- [[ML] Fixes Single Metric Viewer's zoom settings in URL are not
restored if URL specifies a forecast ID
(#176969)](https://github.com/elastic/kibana/pull/176969)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Backport
This will backport the following commits from `main` to `8.12`:
- [[ML] Anomaly Detection: Fix `values-dots` colors
(#176303)](https://github.com/elastic/kibana/pull/176303)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Walter
Rafelsberger","email":"walter.rafelsberger@elastic.co"},"sourceCommit":{"committedDate":"2024-02-06T16:45:19Z","message":"[ML]
Anomaly Detection: Fix `values-dots` colors (#176303)\n\n##
Summary\r\n\r\nFixes the colors of \"value dots\", the dots that are
shown in the Single\r\nMetric Viewer when theres sparse data and not a
continuous line.\r\n\r\nBefore:\r\n\r\n<img width=\"1112\"
alt=\"image\"\r\nsrc=\"7844bfa0-3a50-4088-869a-5a6fc366c0cd\">\r\n\r\nAfter:\r\n\r\n<img
width=\"1112\"
alt=\"image\"\r\nsrc=\"28fcaa1e-eed9-497b-8c1a-c824effd7c31\">\r\n\r\n###
Checklist\r\n\r\n- [x] This was checked for breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"1a5384558d272da8d4c1441191609f626c251456","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix",":ml","Feature:Anomaly
Detection","v8.13.0","v8.12.2"],"title":"[ML] Anomaly Detection: Fix
`values-dots`
colors","number":176303,"url":"https://github.com/elastic/kibana/pull/176303","mergeCommit":{"message":"[ML]
Anomaly Detection: Fix `values-dots` colors (#176303)\n\n##
Summary\r\n\r\nFixes the colors of \"value dots\", the dots that are
shown in the Single\r\nMetric Viewer when theres sparse data and not a
continuous line.\r\n\r\nBefore:\r\n\r\n<img width=\"1112\"
alt=\"image\"\r\nsrc=\"7844bfa0-3a50-4088-869a-5a6fc366c0cd\">\r\n\r\nAfter:\r\n\r\n<img
width=\"1112\"
alt=\"image\"\r\nsrc=\"28fcaa1e-eed9-497b-8c1a-c824effd7c31\">\r\n\r\n###
Checklist\r\n\r\n- [x] This was checked for breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"1a5384558d272da8d4c1441191609f626c251456"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/176303","number":176303,"mergeCommit":{"message":"[ML]
Anomaly Detection: Fix `values-dots` colors (#176303)\n\n##
Summary\r\n\r\nFixes the colors of \"value dots\", the dots that are
shown in the Single\r\nMetric Viewer when theres sparse data and not a
continuous line.\r\n\r\nBefore:\r\n\r\n<img width=\"1112\"
alt=\"image\"\r\nsrc=\"7844bfa0-3a50-4088-869a-5a6fc366c0cd\">\r\n\r\nAfter:\r\n\r\n<img
width=\"1112\"
alt=\"image\"\r\nsrc=\"28fcaa1e-eed9-497b-8c1a-c824effd7c31\">\r\n\r\n###
Checklist\r\n\r\n- [x] This was checked for breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"1a5384558d272da8d4c1441191609f626c251456"}},{"branch":"8.12","label":"v8.12.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Co-authored-by: Walter Rafelsberger <walter.rafelsberger@elastic.co>
# Backport
This will backport the following commits from `main` to `8.12`:
- [[ML] Fix Allocation rendering for failed deployments
(#174882)](https://github.com/elastic/kibana/pull/174882)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Dima
Arnautov","email":"dmitrii.arnautov@elastic.co"},"sourceCommit":{"committedDate":"2024-01-16T12:43:31Z","message":"[ML]
Fix Allocation rendering for failed deployments (#174882)\n\n##
Summary\r\n\r\nFixes \"Allocation\" rendering for failed deployments of
trained models.\r\n\r\n_We should also update the type definition in
elasticsearch\r\nspecification marking `number_of_allocations`
and\r\n`threads_per_allocation` as optional for [Get Trained
Model\r\nStats](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html)\r\nendpoint._\r\n\r\n####
How to reproduce\r\n1. Start a model deployment \r\n2. Find a Process ID
\r\n```\r\nps -ef | grep pytorch_inference\r\n```\r\n3. Kill the
inference process manually \r\n```\r\nkill -9
<PID>\r\n```\r\n\r\nBefore:\r\n\r\n\r\n\r\nAfter:
\r\n<img width=\"1732\"
alt=\"image\"\r\nsrc=\"be970ae8-f4a2-4b06-aff4-f27ce374178c\">","sha":"2a61da251bc8b27e61e7617c8e774af5f1b84dd2","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Feature:3rd
Party Models","Team:ML","v8.12.1","v8.13.0"],"title":"[ML] Fix
Allocation rendering for failed
deployments","number":174882,"url":"https://github.com/elastic/kibana/pull/174882","mergeCommit":{"message":"[ML]
Fix Allocation rendering for failed deployments (#174882)\n\n##
Summary\r\n\r\nFixes \"Allocation\" rendering for failed deployments of
trained models.\r\n\r\n_We should also update the type definition in
elasticsearch\r\nspecification marking `number_of_allocations`
and\r\n`threads_per_allocation` as optional for [Get Trained
Model\r\nStats](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html)\r\nendpoint._\r\n\r\n####
How to reproduce\r\n1. Start a model deployment \r\n2. Find a Process ID
\r\n```\r\nps -ef | grep pytorch_inference\r\n```\r\n3. Kill the
inference process manually \r\n```\r\nkill -9
<PID>\r\n```\r\n\r\nBefore:\r\n\r\n\r\n\r\nAfter:
\r\n<img width=\"1732\"
alt=\"image\"\r\nsrc=\"be970ae8-f4a2-4b06-aff4-f27ce374178c\">","sha":"2a61da251bc8b27e61e7617c8e774af5f1b84dd2"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/174882","number":174882,"mergeCommit":{"message":"[ML]
Fix Allocation rendering for failed deployments (#174882)\n\n##
Summary\r\n\r\nFixes \"Allocation\" rendering for failed deployments of
trained models.\r\n\r\n_We should also update the type definition in
elasticsearch\r\nspecification marking `number_of_allocations`
and\r\n`threads_per_allocation` as optional for [Get Trained
Model\r\nStats](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html)\r\nendpoint._\r\n\r\n####
How to reproduce\r\n1. Start a model deployment \r\n2. Find a Process ID
\r\n```\r\nps -ef | grep pytorch_inference\r\n```\r\n3. Kill the
inference process manually \r\n```\r\nkill -9
<PID>\r\n```\r\n\r\nBefore:\r\n\r\n\r\n\r\nAfter:
\r\n<img width=\"1732\"
alt=\"image\"\r\nsrc=\"be970ae8-f4a2-4b06-aff4-f27ce374178c\">","sha":"2a61da251bc8b27e61e7617c8e774af5f1b84dd2"}}]}]
BACKPORT-->
Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
# Backport
This will backport the following commits from `main` to `8.12`:
- [[ML] Data Frame Analytics: ensure job can be deleted from analytics
map (#174212)](https://github.com/elastic/kibana/pull/174212)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Melissa
Alvarez","email":"melissa.alvarez@elastic.co"},"sourceCommit":{"committedDate":"2024-01-08T18:48:19Z","message":"[ML]
Data Frame Analytics: ensure job can be deleted from analytics map
(#174212)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/174131\r\n\r\nThis PR removes
the failed job check - `stats` being undefined sometimes\r\nwas causing
the issue.\r\nThe need for stats is removed when we default to using the
`force=true`\r\noption in the delete endpoint.\r\nUsing that option
removes the need to first try and stop the job, as\r\nthat is handled by
the endpoint when using that option. This works\r\nregardless of the
job's
state.\r\n\r\n\r\n823580f2-3a09-4ed5-8641-9b2055a7051c\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] This
was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"96a9c8abe24bdd3258047ea0aecc2be108c37e72","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Feature:Data
Frame Analytics","v8.12.0","v8.13.0"],"title":"[ML] Data Frame
Analytics: ensure job can be deleted from analytics
map","number":174212,"url":"https://github.com/elastic/kibana/pull/174212","mergeCommit":{"message":"[ML]
Data Frame Analytics: ensure job can be deleted from analytics map
(#174212)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/174131\r\n\r\nThis PR removes
the failed job check - `stats` being undefined sometimes\r\nwas causing
the issue.\r\nThe need for stats is removed when we default to using the
`force=true`\r\noption in the delete endpoint.\r\nUsing that option
removes the need to first try and stop the job, as\r\nthat is handled by
the endpoint when using that option. This works\r\nregardless of the
job's
state.\r\n\r\n\r\n823580f2-3a09-4ed5-8641-9b2055a7051c\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] This
was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"96a9c8abe24bdd3258047ea0aecc2be108c37e72"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/174212","number":174212,"mergeCommit":{"message":"[ML]
Data Frame Analytics: ensure job can be deleted from analytics map
(#174212)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/174131\r\n\r\nThis PR removes
the failed job check - `stats` being undefined sometimes\r\nwas causing
the issue.\r\nThe need for stats is removed when we default to using the
`force=true`\r\noption in the delete endpoint.\r\nUsing that option
removes the need to first try and stop the job, as\r\nthat is handled by
the endpoint when using that option. This works\r\nregardless of the
job's
state.\r\n\r\n\r\n823580f2-3a09-4ed5-8641-9b2055a7051c\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] This
was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n---------\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"96a9c8abe24bdd3258047ea0aecc2be108c37e72"}}]}]
BACKPORT-->
Co-authored-by: Melissa Alvarez <melissa.alvarez@elastic.co>
# Backport
This will backport the following commits from `main` to `8.12`:
- [[ML][Enterprise Search] Reword E5 model description
(#174171)](https://github.com/elastic/kibana/pull/174171)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Adam
Demjen","email":"demjened@gmail.com"},"sourceCommit":{"committedDate":"2024-01-03T16:08:58Z","message":"[ML][Enterprise
Search] Reword E5 model description (#174171)\n\n##
Summary\r\n\r\nAdding \"third party\" to E5 ML model description as per
legal\r\nrequirements.\r\n\r\n<img width=\"1372\" alt=\"Screenshot
2024-01-03 at 09 11
25\"\r\nsrc=\"29522e9a-d532-45da-93bd-efed6a1090eb\">\r\n<img
width=\"960\" alt=\"Screenshot 2024-01-03 at 09 12
04\"\r\nsrc=\"1e5c2128-7111-4bdf-b1a5-8fe89b450a4e\">\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)","sha":"c706de0078b7475fe931ac9d30aaf3de3a49a5ca","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","Team:ML","Team:EnterpriseSearch","v8.12.0","v8.12.1","v8.13.0"],"title":"[ML][Enterprise
Search] Reword E5 model
description","number":174171,"url":"https://github.com/elastic/kibana/pull/174171","mergeCommit":{"message":"[ML][Enterprise
Search] Reword E5 model description (#174171)\n\n##
Summary\r\n\r\nAdding \"third party\" to E5 ML model description as per
legal\r\nrequirements.\r\n\r\n<img width=\"1372\" alt=\"Screenshot
2024-01-03 at 09 11
25\"\r\nsrc=\"29522e9a-d532-45da-93bd-efed6a1090eb\">\r\n<img
width=\"960\" alt=\"Screenshot 2024-01-03 at 09 12
04\"\r\nsrc=\"1e5c2128-7111-4bdf-b1a5-8fe89b450a4e\">\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)","sha":"c706de0078b7475fe931ac9d30aaf3de3a49a5ca"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/174171","number":174171,"mergeCommit":{"message":"[ML][Enterprise
Search] Reword E5 model description (#174171)\n\n##
Summary\r\n\r\nAdding \"third party\" to E5 ML model description as per
legal\r\nrequirements.\r\n\r\n<img width=\"1372\" alt=\"Screenshot
2024-01-03 at 09 11
25\"\r\nsrc=\"29522e9a-d532-45da-93bd-efed6a1090eb\">\r\n<img
width=\"960\" alt=\"Screenshot 2024-01-03 at 09 12
04\"\r\nsrc=\"1e5c2128-7111-4bdf-b1a5-8fe89b450a4e\">\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)","sha":"c706de0078b7475fe931ac9d30aaf3de3a49a5ca"}}]}]
BACKPORT-->
Co-authored-by: Adam Demjen <demjened@gmail.com>
# Backport
This will backport the following commits from `main` to `8.12`:
- [[Obs AI Assistant] Make KB use recommended ELSER model
(#173543)](https://github.com/elastic/kibana/pull/173543)
<!--- Backport version: 8.9.7 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Milton
Hultgren","email":"milton.hultgren@elastic.co"},"sourceCommit":{"committedDate":"2023-12-22T19:28:57Z","message":"[Obs
AI Assistant] Make KB use recommended ELSER model (#173543)\n\nThis PR
changes the hard coded ELSER model ID to instead be resolved\r\nduring
service `init` and Knowledge base setup using the ML
plugin.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"29ead617005bf3c22995289b99f1cad60c0b1dc5","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","v8.12.0","v8.12.1","v8.13.0"],"number":173543,"url":"https://github.com/elastic/kibana/pull/173543","mergeCommit":{"message":"[Obs
AI Assistant] Make KB use recommended ELSER model (#173543)\n\nThis PR
changes the hard coded ELSER model ID to instead be resolved\r\nduring
service `init` and Knowledge base setup using the ML
plugin.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"29ead617005bf3c22995289b99f1cad60c0b1dc5"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/173543","number":173543,"mergeCommit":{"message":"[Obs
AI Assistant] Make KB use recommended ELSER model (#173543)\n\nThis PR
changes the hard coded ELSER model ID to instead be resolved\r\nduring
service `init` and Knowledge base setup using the ML
plugin.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"29ead617005bf3c22995289b99f1cad60c0b1dc5"}}]}]
BACKPORT-->
Co-authored-by: Milton Hultgren <milton.hultgren@elastic.co>
# Backport
This will backport the following commits from `main` to `8.12`:
- [[ML] Fix registering of the ML alerting rules with the basic license
(#173644)](https://github.com/elastic/kibana/pull/173644)
<!--- Backport version: 8.9.7 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Dima
Arnautov","email":"dmitrii.arnautov@elastic.co"},"sourceCommit":{"committedDate":"2023-12-20T12:31:21Z","message":"[ML]
Fix registering of the ML alerting rules with the basic license
(#173644)\n\n## Summary\r\n\r\nFixes the license checks for registering
ML alerting rules, so that if\r\nthe user doesn't have the required
license to create a rule instance, we\r\nstill show the entry in the
list. The alerting framework disables the\r\nrule type if license
requirements aren't met.\r\n\r\n<img width=\"617\"
alt=\"image\"\r\nsrc=\"891c44f4-ec7c-412b-afcb-e6084193eaed\">","sha":"19b82f8b61b284dd55308eed15f3fc37ea41c1ac","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Feature:Anomaly
Detection","Feature:Alerting/RuleTypes","Team:ML","v8.12.0","v8.13.0"],"number":173644,"url":"https://github.com/elastic/kibana/pull/173644","mergeCommit":{"message":"[ML]
Fix registering of the ML alerting rules with the basic license
(#173644)\n\n## Summary\r\n\r\nFixes the license checks for registering
ML alerting rules, so that if\r\nthe user doesn't have the required
license to create a rule instance, we\r\nstill show the entry in the
list. The alerting framework disables the\r\nrule type if license
requirements aren't met.\r\n\r\n<img width=\"617\"
alt=\"image\"\r\nsrc=\"891c44f4-ec7c-412b-afcb-e6084193eaed\">","sha":"19b82f8b61b284dd55308eed15f3fc37ea41c1ac"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/173644","number":173644,"mergeCommit":{"message":"[ML]
Fix registering of the ML alerting rules with the basic license
(#173644)\n\n## Summary\r\n\r\nFixes the license checks for registering
ML alerting rules, so that if\r\nthe user doesn't have the required
license to create a rule instance, we\r\nstill show the entry in the
list. The alerting framework disables the\r\nrule type if license
requirements aren't met.\r\n\r\n<img width=\"617\"
alt=\"image\"\r\nsrc=\"891c44f4-ec7c-412b-afcb-e6084193eaed\">","sha":"19b82f8b61b284dd55308eed15f3fc37ea41c1ac"}}]}]
BACKPORT-->
Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
# Backport
This will backport the following commits from `main` to `8.12`:
- [[ML] Fixes display of actions column in the datafeed chart flyout
(#173365)](https://github.com/elastic/kibana/pull/173365)
<!--- Backport version: 8.9.7 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Pete
Harverson","email":"pete@elastic.co"},"sourceCommit":{"committedDate":"2023-12-20T11:02:57Z","message":"[ML]
Fixes display of actions column in the datafeed chart flyout
(#173365)\n\n## Summary\r\n\r\nFixes the 'Actions' column in the
datafeed chart flyout, opened from the\r\nanomaly detection jobs list,
so that the 'Toggle in chart' action is\r\nonly shown once per
row.\r\n\r\n#### Before:\r\n\r\n<img width=\"851\"
alt=\"datafeed_flyout_actions_before\"\r\nsrc=\"60f5cb8c-8491-4548-a4d1-336aa66dabaa\">\r\n\r\n\r\n####
After:\r\n\r\n<img width=\"851\"
alt=\"datafeed_flyout_actions_after\"\r\nsrc=\"a85cbbea-44d8-499d-aa89-98b56386075d\">\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"643aa605cd803a3f323db323a679d207bd098544","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Feature:Anomaly
Detection","v8.12.0","v8.13.0"],"number":173365,"url":"https://github.com/elastic/kibana/pull/173365","mergeCommit":{"message":"[ML]
Fixes display of actions column in the datafeed chart flyout
(#173365)\n\n## Summary\r\n\r\nFixes the 'Actions' column in the
datafeed chart flyout, opened from the\r\nanomaly detection jobs list,
so that the 'Toggle in chart' action is\r\nonly shown once per
row.\r\n\r\n#### Before:\r\n\r\n<img width=\"851\"
alt=\"datafeed_flyout_actions_before\"\r\nsrc=\"60f5cb8c-8491-4548-a4d1-336aa66dabaa\">\r\n\r\n\r\n####
After:\r\n\r\n<img width=\"851\"
alt=\"datafeed_flyout_actions_after\"\r\nsrc=\"a85cbbea-44d8-499d-aa89-98b56386075d\">\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"643aa605cd803a3f323db323a679d207bd098544"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/173365","number":173365,"mergeCommit":{"message":"[ML]
Fixes display of actions column in the datafeed chart flyout
(#173365)\n\n## Summary\r\n\r\nFixes the 'Actions' column in the
datafeed chart flyout, opened from the\r\nanomaly detection jobs list,
so that the 'Toggle in chart' action is\r\nonly shown once per
row.\r\n\r\n#### Before:\r\n\r\n<img width=\"851\"
alt=\"datafeed_flyout_actions_before\"\r\nsrc=\"60f5cb8c-8491-4548-a4d1-336aa66dabaa\">\r\n\r\n\r\n####
After:\r\n\r\n<img width=\"851\"
alt=\"datafeed_flyout_actions_after\"\r\nsrc=\"a85cbbea-44d8-499d-aa89-98b56386075d\">\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"643aa605cd803a3f323db323a679d207bd098544"}}]}]
BACKPORT-->
Co-authored-by: Pete Harverson <pete@elastic.co>
# Backport
This will backport the following commits from `main` to `8.12`:
- [[ML] Remove beta badge from ML alerting rules
(#173545)](https://github.com/elastic/kibana/pull/173545)
<!--- Backport version: 8.9.7 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Dima
Arnautov","email":"dmitrii.arnautov@elastic.co"},"sourceCommit":{"committedDate":"2023-12-19T13:13:02Z","message":"[ML]
Remove beta badge from ML alerting rules (#173545)\n\n##
Summary\r\n\r\n- Removes the beta badge from Anomaly detection and
Anomlay detection\r\njob health alerting rules.\r\n- Renames Anomaly
detection alerting rule (\"Anomaly detection alert\" ->\r\n\"Anomaly
detection\") for consistency with the other rules in the
list","sha":"bf52a1396dfe0724d826744ddfbf20b16bebe1bb","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement",":ml","Feature:Anomaly
Detection","Feature:Alerting/RuleTypes","Team:ML","v8.12.0","v8.13.0"],"number":173545,"url":"https://github.com/elastic/kibana/pull/173545","mergeCommit":{"message":"[ML]
Remove beta badge from ML alerting rules (#173545)\n\n##
Summary\r\n\r\n- Removes the beta badge from Anomaly detection and
Anomlay detection\r\njob health alerting rules.\r\n- Renames Anomaly
detection alerting rule (\"Anomaly detection alert\" ->\r\n\"Anomaly
detection\") for consistency with the other rules in the
list","sha":"bf52a1396dfe0724d826744ddfbf20b16bebe1bb"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/173545","number":173545,"mergeCommit":{"message":"[ML]
Remove beta badge from ML alerting rules (#173545)\n\n##
Summary\r\n\r\n- Removes the beta badge from Anomaly detection and
Anomlay detection\r\njob health alerting rules.\r\n- Renames Anomaly
detection alerting rule (\"Anomaly detection alert\" ->\r\n\"Anomaly
detection\") for consistency with the other rules in the
list","sha":"bf52a1396dfe0724d826744ddfbf20b16bebe1bb"}}]}] BACKPORT-->
Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
# Backport
This will backport the following commits from `main` to `8.12`:
- [[ML] Fix View in Discover option in Anomaly explorer not handling
multiple field values or values with quotation marks
(#172897)](https://github.com/elastic/kibana/pull/172897)
<!--- Backport version: 8.9.7 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Quynh Nguyen
(Quinn)","email":"43350163+qn895@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-12-12T19:17:36Z","message":"[ML]
Fix View in Discover option in Anomaly explorer not handling multiple
field values or values with quotation marks (#172897)\n\n##
Summary\r\n\r\nThis PR addresses
https://github.com/elastic/kibana/issues/172872
and\r\nhttps://github.com/elastic/kibana/issues/172461. Previously,
clicking\r\n`View in Discover` option in Anomaly explorer for an anomaly
with\r\ninfluencers containing quotation marks would lead to an error
in\r\nDiscover. Likewise, if the influencer has multiple field values,
the\r\nlink only brings over the first field value and not all. This PR
fixes\r\nboth
issues.\r\n\r\n\r\nAfter:\r\n\r\n\r\nd60055e6-04ec-4882-81ea-02c04f73d16b\r\n\r\n\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces—unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes—Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"fe0ad5adad7610d73cd108d0a76eacfbdfbdc0d7","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Feature:Anomaly
Detection","v8.12.0","v8.12.1","v8.13.0"],"number":172897,"url":"https://github.com/elastic/kibana/pull/172897","mergeCommit":{"message":"[ML]
Fix View in Discover option in Anomaly explorer not handling multiple
field values or values with quotation marks (#172897)\n\n##
Summary\r\n\r\nThis PR addresses
https://github.com/elastic/kibana/issues/172872
and\r\nhttps://github.com/elastic/kibana/issues/172461. Previously,
clicking\r\n`View in Discover` option in Anomaly explorer for an anomaly
with\r\ninfluencers containing quotation marks would lead to an error
in\r\nDiscover. Likewise, if the influencer has multiple field values,
the\r\nlink only brings over the first field value and not all. This PR
fixes\r\nboth
issues.\r\n\r\n\r\nAfter:\r\n\r\n\r\nd60055e6-04ec-4882-81ea-02c04f73d16b\r\n\r\n\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces—unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes—Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"fe0ad5adad7610d73cd108d0a76eacfbdfbdc0d7"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/172897","number":172897,"mergeCommit":{"message":"[ML]
Fix View in Discover option in Anomaly explorer not handling multiple
field values or values with quotation marks (#172897)\n\n##
Summary\r\n\r\nThis PR addresses
https://github.com/elastic/kibana/issues/172872
and\r\nhttps://github.com/elastic/kibana/issues/172461. Previously,
clicking\r\n`View in Discover` option in Anomaly explorer for an anomaly
with\r\ninfluencers containing quotation marks would lead to an error
in\r\nDiscover. Likewise, if the influencer has multiple field values,
the\r\nlink only brings over the first field value and not all. This PR
fixes\r\nboth
issues.\r\n\r\n\r\nAfter:\r\n\r\n\r\nd60055e6-04ec-4882-81ea-02c04f73d16b\r\n\r\n\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces—unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes—Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"fe0ad5adad7610d73cd108d0a76eacfbdfbdc0d7"}}]}]
BACKPORT-->
Co-authored-by: Quynh Nguyen (Quinn) <43350163+qn895@users.noreply.github.com>
# Backport
This will backport the following commits from `main` to `8.12`:
- [[ML] Fix long field names overflowing in Anomaly detection wizard
detector selection
(#172715)](https://github.com/elastic/kibana/pull/172715)
<!--- Backport version: 8.9.7 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Quynh Nguyen
(Quinn)","email":"43350163+qn895@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-12-07T20:51:29Z","message":"[ML]
Fix long field names overflowing in Anomaly detection wizard detector
selection (#172715)\n\n## Summary\r\n\r\nThis PR fixes
https://github.com/elastic/kibana/issues/171963. Changes\r\nincluded fix
long field names overflowing in Anomaly detection wizard\r\ndetector
selection.\r\n\r\nBefore:\r\n<img width=\"435\"
alt=\"image\"\r\nsrc=\"24205669-c4da-43d6-a0e5-1d9d8c353963\">\r\n\r\n\r\nAfter:\r\n<img
width=\"1236\" alt=\"Screenshot 2023-12-06 at 11 52 17
AM\"\r\nsrc=\"ad1d3f0c-a46c-46a1-94dd-1f5848eced7f\">\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces—unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes—Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"f507bcb83a79bf3fd94eb67dd3f5a392e108bdb5","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Feature:Anomaly
Detection","v8.12.0","v8.13.0"],"number":172715,"url":"https://github.com/elastic/kibana/pull/172715","mergeCommit":{"message":"[ML]
Fix long field names overflowing in Anomaly detection wizard detector
selection (#172715)\n\n## Summary\r\n\r\nThis PR fixes
https://github.com/elastic/kibana/issues/171963. Changes\r\nincluded fix
long field names overflowing in Anomaly detection wizard\r\ndetector
selection.\r\n\r\nBefore:\r\n<img width=\"435\"
alt=\"image\"\r\nsrc=\"24205669-c4da-43d6-a0e5-1d9d8c353963\">\r\n\r\n\r\nAfter:\r\n<img
width=\"1236\" alt=\"Screenshot 2023-12-06 at 11 52 17
AM\"\r\nsrc=\"ad1d3f0c-a46c-46a1-94dd-1f5848eced7f\">\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces—unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes—Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"f507bcb83a79bf3fd94eb67dd3f5a392e108bdb5"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/172715","number":172715,"mergeCommit":{"message":"[ML]
Fix long field names overflowing in Anomaly detection wizard detector
selection (#172715)\n\n## Summary\r\n\r\nThis PR fixes
https://github.com/elastic/kibana/issues/171963. Changes\r\nincluded fix
long field names overflowing in Anomaly detection wizard\r\ndetector
selection.\r\n\r\nBefore:\r\n<img width=\"435\"
alt=\"image\"\r\nsrc=\"24205669-c4da-43d6-a0e5-1d9d8c353963\">\r\n\r\n\r\nAfter:\r\n<img
width=\"1236\" alt=\"Screenshot 2023-12-06 at 11 52 17
AM\"\r\nsrc=\"ad1d3f0c-a46c-46a1-94dd-1f5848eced7f\">\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces—unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes—Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"f507bcb83a79bf3fd94eb67dd3f5a392e108bdb5"}}]}]
BACKPORT-->
Co-authored-by: Quynh Nguyen (Quinn) <43350163+qn895@users.noreply.github.com>
## Summary
Closes#136391
Uses a description of the anomaly for the alert message for anomaly
detection alerting rules with the `record` result type. This messages is
used for example in the `Reason` field in the alert table and details
flyout.
<img width="753" alt="image"
src="072fe833-204b-4d38-bd3d-50d00015a43f">
### Checklist
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
## Summary
Add a mute/unmute action component to be used in alerts table row
actions, move all common alerts table row actions to triggersActionsUI
and re-export them for consumers to compose their table actions.

### Checklist
- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
---------
Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
Co-authored-by: Maryam Saeidi <maryam.saeidi@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Adds the ability to run pattern analysis on the index used for an
anomaly detection job.
The pattern analysis is run for the whole time range selected in the
page's time picker, but also adds a sub aggregation to focus on the
bucket time range for the selected anomaly.
This allows the user to view either patterns found in the bucket or the
full time range.
If partition field has been used in the detector, this is also added as
a filter in the sub agg, so the patterns shown are only ones where the
doc also matches the partition field value.
A sub agg was used rather than just running the whole analysis on the
bucket to ensure we get a good analysis and good patterns. The more data
we see, the more accurate the patterns.
This way we can find all of the patterns and then find which of those
patterns match the bucket.
The pattern analysis action item is added to the menu if the data view
has a `message` or `error.message` field.
3e8295a0-5c7e-4ba6-b260-13c158d32a29
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Fixes https://github.com/elastic/kibana/issues/163575
When no jobs are available for selection the `Create job` button should
be disabled for users who cannot create jobs and when no ML nodes are
available.
**When user has insufficient permissions**
<img width="1372" alt="image"
src="9fedc721-6e50-425f-b3b2-c7480146e1e1">
**When no ML nodes are available**

Fixes issue where the list of kibana objects in a module are not being
rendered correctly.
The issue was caused by the kibana objects from the module not being
initially added to the list.
**Before**

**After**

Consolidates UI elements and backend code to create/delete data views
and destination indices related to transforms and data frame analytics.
We ended up with two different approaches for creating data views in the
wizards for transforms and data frame analytics, the original reason was
we were not aware of the `allowNoIndex: true` setting and worked around
that in different ways.
This PR aligns UI workflows and moves related code to a new package
`@kbn/ml-data-view-utils` for data views and
`@kbn/ml-creation-wizard-utils` for the destination index form. The
latter might be used for other shared components across wizard..
In Data Frame Analytics, the checkbox to create a data view was removed
from the last "Create" step, instead the option to create a data view
was moved to the "Details" step.
In Transforms, the UI component to create the destination index was
brought over from DFA where there is a switch option to automatically
use the job ID as the name for the destination index by default.
## Summary
Fix https://github.com/elastic/kibana/issues/170428
The bug this is intended to resolve requires some in-depth steps to
reproduce. Follow the instructions in the issue above. Then, merge in
this branch and compare.
### Checklist
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
There is a bug with the way we check whether or not to start polling for
blocked jobs. We should only start polling there isn't an existing poll
running.
This causes the polling to run as possible and to refresh the full jobs
list on every check.
Now the blocked jobs polling correctly runs at the interval of 2s and
the full jobs list is only updated when there is a change in the list of
blocked jobs.
Partially fixes https://github.com/elastic/kibana/issues/171626
A more in-depth change as specified in the issue can be done in follow
up work. It's good to get this change in for the next release just in
case we run out of time for the larger change.
- Renames references to index patterns to data views in function and
variable names.
- Some inconsistent naming of schemas for data frame analytics was
cleaned up as part of this PR.
- Note this doesn't cover the whole ml owned codebase but just code
related to data frame analytics.
Renames references to index pattern to data views.
- Updates references in `data-test-subj` attributes for data frame
analytics.
- Renames methods in the ` ml.testResources` service used in tests.
- `IndexPattern` references in testing code referring to single indices
were renamed to use `IndexName`. For variable names still using
`IndexPattern` they were prefixed with e.g. `esIndexPattern` to avoid
ambiguity with the legacy data view name.
Note there are still references in the state management code of the data
frame analytics creation wizard, this wasn't picked up in this PR since
it focuses mostly on test related code.
Adds the ability to quickly create a categorisation anomaly detection
job from the pattern analysis flyout.
Adds a new `created_by` ID `categorization-wizard-from-pattern-analysis`
which can be picked up by telemetry.
Creates a new package for sharing our AIOPs ui actions IDs. I think we
should move the pattern analysis ID to this package too, but that can be
done in a separate PR.
51349f93-f072-4983-85f0-98741902fb5a
6e618581-8916-4e63-930f-945c96c25e6c
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
## Summary
This PR removes the [duplicated RedirectAppLinks
component](https://github.com/elastic/kibana/blob/v8.10.4/src/plugins/kibana_react/public/app_links/redirect_app_link.tsx)
which has been marked as deprecated since
74a00fad20.
All references to the previous import declaration from
`@kbn/kibana-react-plugin/public` have been replaced with
`@kbn/shared-ux-link-redirect-app`, this change ensures that the current
app behaviour is preserved, and changes to match the expectation of the
new component have been applied where necessary.
Changes relating to the new `RedirectAppLinks` component;
- The component does not accept a `className` anymore as it is not a
presentational component despite it being used as one previously,
there's change to make accommodation for how it had been used.
- The component introduces a`data-test-subj` attribute with the value
`kbnRedirectAppLink` on the dom node that wraps it's children.
### Checklist
<!--
Delete any items that are not applicable to this PR.
~- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)~
-->
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
<!--
~- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard
accessibility](https://webaim.org/techniques/keyboard/))~
~- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))~
~- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~
~- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))~
~- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)~
### Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.
When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:
| Risk | Probability | Severity | Mitigation/Notes |
|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces—unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes—Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |
### For maintainers
- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
-->
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
## Summary
With alerts-as-data integration added in
https://github.com/elastic/kibana/pull/166349, we're enabled to
incorporate alerts historical data into views in the ML UI to see how it
correlates with the anomaly results.
This PR add alerts data to the Anomaly Explorer page. If selected
anomaly detection jobs have associated alerting rules, we show a new
"Alerts" panel.
It contains:
<img width="1675" alt="image"
src="1945d1f1-7f12-4a03-8ebd-e0b36c8fce68">
#### A line chart with alerts count over time using the Lens embeddable
It support sync cursor with the Anomaly swim lane making it easier to
align anomalous buckets with alerts spikes.
<img width="1189" alt="image"
src="343b9bcf-bfa4-479d-bf8f-c1572402aa42">
#### Summary of the alerting rules
Shows an aggregated information for each alerting rule associated with
the current job selection:
- An indicator if alerting rule is active
- Total number of alerts
- Duration of the latest alerts
- Start time for active rules and Recovery time for recovered
Rules summary has a descending order based on the following criteria:
- Number of active alerts in rule
- Total number of alerts in rule
- Duration of the most recent alert in rule
<img width="1032" alt="image"
src="899f37f3-dd8c-4cb6-b7f6-263ed86d20ee">
#### Alert details
It contains an alerts table provided by `triggersActionsUI` plugin. For
each alert the user can:
- Open alerts details page
- Attach an alert to a new case
- Attach n alert to an existing case
<img width="1177" alt="image"
src="d3b7768a-bae2-404f-b364-ff7d7493cb9b">
#### Alert context menu
When an anomaly swim lane cells are selected, and there are alerts
within the chosen time range, a context menu displaying alert details is
shown.
<img width="1202" alt="image"
src="2b684c51-db5a-4f8c-bda9-c3e9aabde0d4">
### Checklist
- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
Corrects the types describing the services added to ML's kibana context.
Most of the churn here is me alphabetically sorting the lists of
dependencies.
Also Removes `appName` from the context as it was never actually set. In
the places where it was being used I've switched to our `PLUGIN_ID`
Fixes https://github.com/elastic/kibana/issues/170670
We currently do not support ES|QL in anomaly detection jobs.
An ES|QL Lens vis cannot have mixed layers, as in one layer using ES|QL
and another using DSL, therefore we need to completely disable the ML
action item in the menu.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Closes https://github.com/elastic/kibana/issues/164748
## Summary
Previously, the link embeddable **always** used the Dashboard plugin's
locator - this meant that, for portable dashboards (such as those in
Security or in APM), navigation through the link embeddable would always
send the user to the Dashboard plugin rather than staying in whatever
context the portable dashboard was in. This PR fixes that by ensuring
that each `DashboardRenderer` consumer can provide their **own** locator
as a prop - this means that the Dashboard app can still use its own
locator, while the Security/APM plugins (for example) can **also**
define a locator so that navigation remains in the security/APM app.
### Security @elastic/security-solution-platform
While I did my best to modify each portable dashboard implementation to
include this new locator prop, without the full context on how each
plugin wants to handle the link embeddable, I've had to make a few
assumptions about the behaviour. For example, in security....
- The Security dashboards **not** respond to the query bar in the same
way that they do in the Dashboard app - therefore, the link embeddable
settings for "Use filters and query from origin dashboard" and "Use date
range from origin dashboard" do not make sense in this context.
For example, in Security, it is (from my understanding) **expected**
that the query bar would always remain constant, regardless of these
settings; therefore, these settings are more-or-less ignored.
Unfortunately, this opens up a potential confusion for users, especially
if the are editing/creating a link embeddable in the security context.
- The Security app does not currently use real locators, and my attempts
to remedy this were unsuccessful. Therefore, rather than requiring a
**true** `Locator` object to be passed in as a prop to the
`DashboardRenderer`, I had to instead accept any object that has both a
`navigate` and `getRedirectUrl` method defined.
It would be **much** cleaner for the Security plugin to define its own
locator - that way, the `DashboardRenderer` could instead just accept a
locator ID as a prop, and the link embeddable could use that ID fetch
the appropriate locator as necessary; however, this is a pretty major
refactor, since the Security app handles URLs/navigation in a much
different way than any other Kibana app.
**Before:**
67fdf34f-60e3-47fc-b205-8a6443a0452d
**After:**
f92f1eb0-1467-4408-8792-f881e355188b
### APM @elastic/apm-ui
While I did my best to modify each portable dashboard implementation to
include this new locator prop, without the full context on how each
plugin wants to handle the link embeddable, I've had to make a few
assumptions about the behaviour. For example, in APM....
- Similar to the Security implementation, the APM dashboards **not**
respond to the query bar in the same way that they do in the Dashboard
app - therefore, the link embeddable settings for "Use filters and query
from origin dashboard" and "Use date range from origin dashboard" do not
make sense in this context.
For example, in APM, it is (from my understanding) **expected** that the
query bar would always remain constant, regardless of these settings;
therefore, these settings are more-or-less ignored. That being said,
because APM does not currently support dashboard editing, I believe this
is less of a concern than it is for other implementations.
- Because of the unique content management system that APM is using,
where Dashboards must be linked in order for them to be viewed, the link
embeddable would not work **unless** the user was navigating to a
dashboard that was added to the APM Dashboard CM. I've had to change
this so that **any** dashboard can be viewed in the APM context - that
way, even if someone is trying to load a dashboard that is **not**
linked, it will still load.
This goes against how APM typically handles its dashboards, so I am open
to suggestions if this behaviour is undesirable. It just felt odd to me
that I would have to link every single referenced dashboard in the APM
context if I wanted the link embeddable to work....
**Before:**
59397d42-2289-4721-9d4a-74c3e7a4d871
**After:**
87924826-e766-4b50-87c6-132ae936f2fc
### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
### For maintainers
- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Fixes https://github.com/elastic/kibana/issues/169771
Adds a new endpoint
`/internal/ml/trained_models/install_elastic_trained_model/:modelId`
which wraps the `putTrainedModel` call to start the download of the
elser model. It then reassigns the saved object's space to be `*`.
Also updates the saved object sync call to ensure any internal models
(ones which start with `.`) are assigned to the `*` space, if they've
needed syncing.
It is still possible for a user to reassign the spaces for an elser
model and get themselves into the situation covered described in
https://github.com/elastic/kibana/issues/169771.
In this situation, I believe the best we can do is suggest the user
adjusts the spaces via the stack management page.
At the moment a `Model already exists` error is displayed in a toast. In
a follow up PR we could catch this and show more information to direct
the user to the stack management page.
---------
Co-authored-by: Dima Arnautov <arnautov.dima@gmail.com>
When creating a brand new job, temporary data views can be created and
used in the wizard.
When cloning a job where the data view cannot be found, a new temporary
data view is created to be used in the wizard.
This can happen if the data view used to create the original job has
been deleted or the job was created with a temporary data view.
2b9c2125-2b0c-449d-a226-82267f64567b
Also overrides the animation for the expanded rows in the AD jobs list
which can cause strange behaviour when changing tabs in the expanded
row.
---------
Co-authored-by: Quynh Nguyen (Quinn) <43350163+qn895@users.noreply.github.com>
Makes use of EUI's new multi-line truncation option for table columns
(https://github.com/elastic/eui/issues/7226). For columns that use this
feature, this PR wraps the text in custom render functions which add a
`span` element with a `title` attribute and the cells text.
Adds a new `tags` property to our ML Modules which contains an array of
strings to used to filter the modules returned when calling
`/internal/ml/modules/get_module` or `/internal/ml/modules/recognize`
Adds a new kibana config setting `xpack.ml.compatibleModuleType` which
will enforce a module filter.
This setting supports the values `security`, `observability` or `search`
and will be used by the serverless projects to ensure only modules
relevant to the current project are discoverable.
When matching against the `xpack.ml.compatibleModuleType` setting,
modules with no tags will be returned along with modules which match the
`compatibleModuleType` value.
The endpoints `/internal/ml/modules/get_module` and
`/internal/ml/modules/recognize` can also take a `filter` query
parameter in the form of a comma separated list of values. If any of
these filter values match a module's tags, the module will be returned.
Modules with no tags will not be matched when using the `filter`
parameter.
This PR also updates the security plugin to apply a `security` filter
when retrieving modules and running recognize. This will improve
performance, especially for recognize which runs the queries from every
module on the supplied index pattern.
Examples
**Running the Security serverless project.**
Request:
`/internal/ml/modules/get_module`
Response:
All modules containing `tags: ["security"]`
Plus all modules with no `tags` or `tags: []`
Request:
`/internal/ml/modules/get_module?filter=observability`
Response:
An empty list
**Running stateful es**
Request:
`/internal/ml/modules/get_module`
Response:
All modules
Request:
`/internal/ml/modules/get_module?filter=security`
Response:
Only modules containing `tags: ["security"]`
Request:
`/internal/ml/modules/get_module?filter=security,observability`
Response:
Modules containing `tags: ["security"]` and `tags: ["observability"]`
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
## Summary
This PR adds UI tracking for Change Point Detection for AIOps.
- tracks type of analysis and source (where the analysis is being run
from)
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Quynh Nguyen (Quinn) <43350163+qn895@users.noreply.github.com>
## Summary
close https://github.com/elastic/kibana/issues/167337
It introduces a new way to automatically set the deeper context
breadcrumbs in serverless navigation. Instead of using the
`serverless.setBreadcrumbs` for setting deeper context breadcrumbs in
serverless, the project navigation service merges navigational
breadcrumbs with regular chrome's breadcrumbs by deepLinkId