Skip to content

[9.0] [ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)#236604

Merged
rbrtj merged 2 commits intoelastic:9.0from
rbrtj:backport/9.0/pr-236289
Sep 29, 2025
Merged

[9.0] [ML] Anomaly Explorer: Fixes display of alerts from anomaly detection alerting rule (#236289)#236604
rbrtj merged 2 commits intoelastic:9.0from
rbrtj:backport/9.0/pr-236289

Conversation

@rbrtj
Copy link
Contributor

@rbrtj rbrtj commented Sep 26, 2025

Backport

This will backport the following commits from main to 9.0:

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
@rbrtj rbrtj added the backport This PR is a backport of another PR label Sep 26, 2025
@rbrtj rbrtj enabled auto-merge (squash) September 26, 2025 13:43
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
ml 76.5KB 76.6KB +112.0B

History

@rbrtj rbrtj merged commit 7c282f2 into elastic:9.0 Sep 29, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

3 participants