[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule#236289
[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule#236289rbrtj merged 2 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/ml-ui (:ml) |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Page load bundle
History
cc @rbrtj |
consumers so ML users can view all created ML rules
peteharverson
left a comment
There was a problem hiding this comment.
Tested and LGTM. Confirmed that alerts from anomaly detection alerting rules which have "consumer": "stackAlerts" are now displayed in the Anomaly Explorer along with ones where "consumer": "alerts". Before this fix, only ones with "consumer": "alerts" were displayed.
|
Starting backport for target branches: 8.18, 8.19, 9.0, 9.1 |
… alerting rule (elastic#236289) Resolves elastic#235504 Currently, when an ML-only user creates ML rules from both creation flows, the consumer is set to `alerts`. Creating a rule from the "Anomaly Detection Jobs" page in Stack management sets the consumer to `stackAlerts` for a user with access to both feature privileges, instead of setting the consumer to `alerts`. With this PR, ML-only user will be able to access all ML rules, no matter if the consumer is `alerts` or `stackAlerts`. <img width="896" height="611" alt="Screenshot 2025-09-25 at 13 42 19" src="https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c" /> (cherry picked from commit 7d682e3)
… alerting rule (elastic#236289) Resolves elastic#235504 Currently, when an ML-only user creates ML rules from both creation flows, the consumer is set to `alerts`. Creating a rule from the "Anomaly Detection Jobs" page in Stack management sets the consumer to `stackAlerts` for a user with access to both feature privileges, instead of setting the consumer to `alerts`. With this PR, ML-only user will be able to access all ML rules, no matter if the consumer is `alerts` or `stackAlerts`. <img width="896" height="611" alt="Screenshot 2025-09-25 at 13 42 19" src="https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c" /> (cherry picked from commit 7d682e3)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
… alerting rule (elastic#236289) Resolves elastic#235504 Currently, when an ML-only user creates ML rules from both creation flows, the consumer is set to `alerts`. Creating a rule from the "Anomaly Detection Jobs" page in Stack management sets the consumer to `stackAlerts` for a user with access to both feature privileges, instead of setting the consumer to `alerts`. With this PR, ML-only user will be able to access all ML rules, no matter if the consumer is `alerts` or `stackAlerts`. <img width="896" height="611" alt="Screenshot 2025-09-25 at 13 42 19" src="https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c" /> (cherry picked from commit 7d682e3) # Conflicts: # x-pack/platform/plugins/shared/ml/common/types/capabilities.ts
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
… alerting rule (elastic#236289) Resolves elastic#235504 Currently, when an ML-only user creates ML rules from both creation flows, the consumer is set to `alerts`. Creating a rule from the "Anomaly Detection Jobs" page in Stack management sets the consumer to `stackAlerts` for a user with access to both feature privileges, instead of setting the consumer to `alerts`. With this PR, ML-only user will be able to access all ML rules, no matter if the consumer is `alerts` or `stackAlerts`. <img width="896" height="611" alt="Screenshot 2025-09-25 at 13 42 19" src="https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c" /> (cherry picked from commit 7d682e3) # Conflicts: # x-pack/platform/plugins/shared/ml/common/types/capabilities.ts
…ection alerting rule (#236289) (#236578) # Backport This will backport the following commits from `main` to `9.1`: - [[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)](#236289) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Robert Jaszczurek","email":"92210485+rbrtj@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-09-26T11:43:40Z","message":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)\n\nResolves https://github.com/elastic/kibana/issues/235504\nCurrently, when an ML-only user creates ML rules from both creation\nflows, the consumer is set to `alerts`.\nCreating a rule from the \"Anomaly Detection Jobs\" page in Stack\nmanagement sets the consumer to `stackAlerts` for a user with access to\nboth feature privileges, instead of setting the consumer to `alerts`.\nWith this PR, ML-only user will be able to access all ML rules, no\nmatter if the consumer is `alerts` or `stackAlerts`.\n\n<img width=\"896\" height=\"611\" alt=\"Screenshot 2025-09-25 at 13 42 19\"\nsrc=\"https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c\"\n/>","sha":"7d682e38784717604aac8714ff9b7fd94dc3cac6","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Team:ML","backport:version","v9.2.0","v8.18.8","v8.19.5","v9.0.8","v9.1.5"],"title":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule","number":236289,"url":"https://github.com/elastic/kibana/pull/236289","mergeCommit":{"message":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)\n\nResolves https://github.com/elastic/kibana/issues/235504\nCurrently, when an ML-only user creates ML rules from both creation\nflows, the consumer is set to `alerts`.\nCreating a rule from the \"Anomaly Detection Jobs\" page in Stack\nmanagement sets the consumer to `stackAlerts` for a user with access to\nboth feature privileges, instead of setting the consumer to `alerts`.\nWith this PR, ML-only user will be able to access all ML rules, no\nmatter if the consumer is `alerts` or `stackAlerts`.\n\n<img width=\"896\" height=\"611\" alt=\"Screenshot 2025-09-25 at 13 42 19\"\nsrc=\"https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c\"\n/>","sha":"7d682e38784717604aac8714ff9b7fd94dc3cac6"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.19","9.0","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/236289","number":236289,"mergeCommit":{"message":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)\n\nResolves https://github.com/elastic/kibana/issues/235504\nCurrently, when an ML-only user creates ML rules from both creation\nflows, the consumer is set to `alerts`.\nCreating a rule from the \"Anomaly Detection Jobs\" page in Stack\nmanagement sets the consumer to `stackAlerts` for a user with access to\nboth feature privileges, instead of setting the consumer to `alerts`.\nWith this PR, ML-only user will be able to access all ML rules, no\nmatter if the consumer is `alerts` or `stackAlerts`.\n\n<img width=\"896\" height=\"611\" alt=\"Screenshot 2025-09-25 at 13 42 19\"\nsrc=\"https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c\"\n/>","sha":"7d682e38784717604aac8714ff9b7fd94dc3cac6"}},{"branch":"8.18","label":"v8.18.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com>
…tection alerting rule (#236289) (#236577) # Backport This will backport the following commits from `main` to `8.19`: - [[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)](#236289) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Robert Jaszczurek","email":"92210485+rbrtj@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-09-26T11:43:40Z","message":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)\n\nResolves https://github.com/elastic/kibana/issues/235504\nCurrently, when an ML-only user creates ML rules from both creation\nflows, the consumer is set to `alerts`.\nCreating a rule from the \"Anomaly Detection Jobs\" page in Stack\nmanagement sets the consumer to `stackAlerts` for a user with access to\nboth feature privileges, instead of setting the consumer to `alerts`.\nWith this PR, ML-only user will be able to access all ML rules, no\nmatter if the consumer is `alerts` or `stackAlerts`.\n\n<img width=\"896\" height=\"611\" alt=\"Screenshot 2025-09-25 at 13 42 19\"\nsrc=\"https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c\"\n/>","sha":"7d682e38784717604aac8714ff9b7fd94dc3cac6","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Team:ML","backport:version","v9.2.0","v8.18.8","v8.19.5","v9.0.8","v9.1.5"],"title":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule","number":236289,"url":"https://github.com/elastic/kibana/pull/236289","mergeCommit":{"message":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)\n\nResolves https://github.com/elastic/kibana/issues/235504\nCurrently, when an ML-only user creates ML rules from both creation\nflows, the consumer is set to `alerts`.\nCreating a rule from the \"Anomaly Detection Jobs\" page in Stack\nmanagement sets the consumer to `stackAlerts` for a user with access to\nboth feature privileges, instead of setting the consumer to `alerts`.\nWith this PR, ML-only user will be able to access all ML rules, no\nmatter if the consumer is `alerts` or `stackAlerts`.\n\n<img width=\"896\" height=\"611\" alt=\"Screenshot 2025-09-25 at 13 42 19\"\nsrc=\"https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c\"\n/>","sha":"7d682e38784717604aac8714ff9b7fd94dc3cac6"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","8.19","9.0","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/236289","number":236289,"mergeCommit":{"message":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)\n\nResolves https://github.com/elastic/kibana/issues/235504\nCurrently, when an ML-only user creates ML rules from both creation\nflows, the consumer is set to `alerts`.\nCreating a rule from the \"Anomaly Detection Jobs\" page in Stack\nmanagement sets the consumer to `stackAlerts` for a user with access to\nboth feature privileges, instead of setting the consumer to `alerts`.\nWith this PR, ML-only user will be able to access all ML rules, no\nmatter if the consumer is `alerts` or `stackAlerts`.\n\n<img width=\"896\" height=\"611\" alt=\"Screenshot 2025-09-25 at 13 42 19\"\nsrc=\"https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c\"\n/>","sha":"7d682e38784717604aac8714ff9b7fd94dc3cac6"}},{"branch":"8.18","label":"v8.18.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com>
…tection alerting rule (#236289) (#236605) # Backport This will backport the following commits from `main` to `8.18`: - [[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)](#236289) <!--- Backport version: 10.0.2 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Robert Jaszczurek","email":"92210485+rbrtj@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-09-26T11:43:40Z","message":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)\n\nResolves https://github.com/elastic/kibana/issues/235504\nCurrently, when an ML-only user creates ML rules from both creation\nflows, the consumer is set to `alerts`.\nCreating a rule from the \"Anomaly Detection Jobs\" page in Stack\nmanagement sets the consumer to `stackAlerts` for a user with access to\nboth feature privileges, instead of setting the consumer to `alerts`.\nWith this PR, ML-only user will be able to access all ML rules, no\nmatter if the consumer is `alerts` or `stackAlerts`.\n\n<img width=\"896\" height=\"611\" alt=\"Screenshot 2025-09-25 at 13 42 19\"\nsrc=\"https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c\"\n/>","sha":"7d682e38784717604aac8714ff9b7fd94dc3cac6","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Team:ML","backport:version","v9.2.0","v8.18.8","v8.19.5","v9.0.8","v9.1.5"],"title":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule","number":236289,"url":"https://github.com/elastic/kibana/pull/236289","mergeCommit":{"message":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)\n\nResolves https://github.com/elastic/kibana/issues/235504\nCurrently, when an ML-only user creates ML rules from both creation\nflows, the consumer is set to `alerts`.\nCreating a rule from the \"Anomaly Detection Jobs\" page in Stack\nmanagement sets the consumer to `stackAlerts` for a user with access to\nboth feature privileges, instead of setting the consumer to `alerts`.\nWith this PR, ML-only user will be able to access all ML rules, no\nmatter if the consumer is `alerts` or `stackAlerts`.\n\n<img width=\"896\" height=\"611\" alt=\"Screenshot 2025-09-25 at 13 42 19\"\nsrc=\"https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c\"\n/>","sha":"7d682e38784717604aac8714ff9b7fd94dc3cac6"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","9.0"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/236289","number":236289,"mergeCommit":{"message":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)\n\nResolves https://github.com/elastic/kibana/issues/235504\nCurrently, when an ML-only user creates ML rules from both creation\nflows, the consumer is set to `alerts`.\nCreating a rule from the \"Anomaly Detection Jobs\" page in Stack\nmanagement sets the consumer to `stackAlerts` for a user with access to\nboth feature privileges, instead of setting the consumer to `alerts`.\nWith this PR, ML-only user will be able to access all ML rules, no\nmatter if the consumer is `alerts` or `stackAlerts`.\n\n<img width=\"896\" height=\"611\" alt=\"Screenshot 2025-09-25 at 13 42 19\"\nsrc=\"https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c\"\n/>","sha":"7d682e38784717604aac8714ff9b7fd94dc3cac6"}},{"branch":"8.18","label":"v8.18.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/236577","number":236577,"state":"OPEN"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/236578","number":236578,"state":"OPEN"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…ection alerting rule (#236289) (#236604) # Backport This will backport the following commits from `main` to `9.0`: - [[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)](#236289) <!--- Backport version: 10.0.2 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Robert Jaszczurek","email":"92210485+rbrtj@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-09-26T11:43:40Z","message":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)\n\nResolves https://github.com/elastic/kibana/issues/235504\nCurrently, when an ML-only user creates ML rules from both creation\nflows, the consumer is set to `alerts`.\nCreating a rule from the \"Anomaly Detection Jobs\" page in Stack\nmanagement sets the consumer to `stackAlerts` for a user with access to\nboth feature privileges, instead of setting the consumer to `alerts`.\nWith this PR, ML-only user will be able to access all ML rules, no\nmatter if the consumer is `alerts` or `stackAlerts`.\n\n<img width=\"896\" height=\"611\" alt=\"Screenshot 2025-09-25 at 13 42 19\"\nsrc=\"https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c\"\n/>","sha":"7d682e38784717604aac8714ff9b7fd94dc3cac6","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Team:ML","backport:version","v9.2.0","v8.18.8","v8.19.5","v9.0.8","v9.1.5"],"title":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule","number":236289,"url":"https://github.com/elastic/kibana/pull/236289","mergeCommit":{"message":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)\n\nResolves https://github.com/elastic/kibana/issues/235504\nCurrently, when an ML-only user creates ML rules from both creation\nflows, the consumer is set to `alerts`.\nCreating a rule from the \"Anomaly Detection Jobs\" page in Stack\nmanagement sets the consumer to `stackAlerts` for a user with access to\nboth feature privileges, instead of setting the consumer to `alerts`.\nWith this PR, ML-only user will be able to access all ML rules, no\nmatter if the consumer is `alerts` or `stackAlerts`.\n\n<img width=\"896\" height=\"611\" alt=\"Screenshot 2025-09-25 at 13 42 19\"\nsrc=\"https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c\"\n/>","sha":"7d682e38784717604aac8714ff9b7fd94dc3cac6"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","9.0"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/236289","number":236289,"mergeCommit":{"message":"[ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)\n\nResolves https://github.com/elastic/kibana/issues/235504\nCurrently, when an ML-only user creates ML rules from both creation\nflows, the consumer is set to `alerts`.\nCreating a rule from the \"Anomaly Detection Jobs\" page in Stack\nmanagement sets the consumer to `stackAlerts` for a user with access to\nboth feature privileges, instead of setting the consumer to `alerts`.\nWith this PR, ML-only user will be able to access all ML rules, no\nmatter if the consumer is `alerts` or `stackAlerts`.\n\n<img width=\"896\" height=\"611\" alt=\"Screenshot 2025-09-25 at 13 42 19\"\nsrc=\"https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c\"\n/>","sha":"7d682e38784717604aac8714ff9b7fd94dc3cac6"}},{"branch":"8.18","label":"v8.18.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/236577","number":236577,"state":"OPEN"},{"branch":"9.0","label":"v9.0.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/236578","number":236578,"state":"OPEN"}]}] BACKPORT-->
… alerting rule (#236289) Resolves #235504 Currently, when an ML-only user creates ML rules from both creation flows, the consumer is set to `alerts`. Creating a rule from the "Anomaly Detection Jobs" page in Stack management sets the consumer to `stackAlerts` for a user with access to both feature privileges, instead of setting the consumer to `alerts`. With this PR, ML-only user will be able to access all ML rules, no matter if the consumer is `alerts` or `stackAlerts`. <img width="896" height="611" alt="Screenshot 2025-09-25 at 13 42 19" src="https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c" />
… alerting rule (elastic#236289) Resolves elastic#235504 Currently, when an ML-only user creates ML rules from both creation flows, the consumer is set to `alerts`. Creating a rule from the "Anomaly Detection Jobs" page in Stack management sets the consumer to `stackAlerts` for a user with access to both feature privileges, instead of setting the consumer to `alerts`. With this PR, ML-only user will be able to access all ML rules, no matter if the consumer is `alerts` or `stackAlerts`. <img width="896" height="611" alt="Screenshot 2025-09-25 at 13 42 19" src="https://github.com/user-attachments/assets/14ec0af4-03fb-41e2-b3cf-de36106ed68c" />
Resolves #235504
Currently, when an ML-only user creates ML rules from both creation flows, the consumer is set to
alerts.Creating a rule from the "Anomaly Detection Jobs" page in Stack management sets the consumer to
stackAlertsfor a user with access to both feature privileges, instead of setting the consumer toalerts.With this PR, ML-only user will be able to access all ML rules, no matter if the consumer is
alertsorstackAlerts.