Skip to content

Conversation

@maryam-saeidi
Copy link
Member

Summary

I noticed that the query field is not loaded correctly when we use a saved query in the ES Query rule type, as shown below:

Before

Screen.Recording.2025-07-30.at.15.25.13.mov

After

Screen.Recording.2025-07-30.at.15.30.03.mov

@maryam-saeidi maryam-saeidi self-assigned this Jul 30, 2025
@maryam-saeidi maryam-saeidi requested a review from a team as a code owner July 30, 2025 13:44
@maryam-saeidi maryam-saeidi added the backport:skip This PR does not require backporting label Jul 30, 2025
@github-actions github-actions bot added the author:obs-ux-management PRs authored by the obs ux management team label Jul 30, 2025
@maryam-saeidi maryam-saeidi changed the title [ES Query] Fix loading saved query's query correctly in the rule definition [ES Query] Fix loading saved query's query in the rule definition Jul 30, 2025
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a unit test for the fix in x-pack/platform/plugins/shared/stack_alerts/public/rule_types/es_query/expression/search_source_expression.test.tsx?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline, everything is mocked in that test, so we cannot test this logic there.

@cnasikas cnasikas added the Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// label Jul 31, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@maryam-saeidi maryam-saeidi merged commit a226b35 into elastic:main Aug 1, 2025
23 checks passed
@maryam-saeidi maryam-saeidi deleted the fix-es-query-saved-query branch August 1, 2025 11:02
szaffarano pushed a commit to szaffarano/kibana that referenced this pull request Aug 5, 2025
delanni pushed a commit to delanni/kibana that referenced this pull request Aug 5, 2025
@wildemat wildemat mentioned this pull request Aug 7, 2025
10 tasks
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:obs-ux-management PRs authored by the obs ux management team backport:skip This PR does not require backporting release_note:fix Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants