CPS: Add project routing section to ES|QL in Kibana and ES|QL visualizations#5424
Merged
florent-leborgne merged 9 commits intocps-tech-previewfrom Mar 23, 2026
Merged
Conversation
Add a new section explaining how to use SET project_routing in ES|QL queries to control which linked projects a query targets, including autocomplete values, named routing expressions, and the panel badge. Closes #685 Made-with: Cursor
Contributor
Vale Linting ResultsSummary: 1 warning found
|
| File | Line | Rule | Message |
|---|---|---|---|
| explore-analyze/query-filter/languages/esql-kibana.md | 255 | Elastic.Spelling | 'autocompletes' is a possible misspelling. |
The Vale linter checks documentation changes against the Elastic Docs style guide.
To use Vale locally or report issues, refer to Elastic style guide for Vale.
Made-with: Cursor
Made-with: Cursor
Revert alerting rules CPS changes that are covered by the dedicated alerting PR. Add a CPS section to the ES|QL visualizations page explaining SET project_routing and the Custom CPS scope badge. Made-with: Cursor
Remove duplicated content (routing expression details, badge note) already covered by the manage-scope page. Keep the example and autocomplete values which are unique to the ES|QL editor. Link out for full query-level override details. Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Contributor
Author
|
@mbondyra I'm merging this one because it'll fix a link that prevents the feature branch from building a preview but feel free to add your thoughts there and I'll make the changes separately |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds CPS project routing documentation to the ES|QL pages:
ES|QL in Kibana (
esql-kibana.md):SET project_routingsyntax, autocomplete values (_alias:_origin,_alias:*), tag-based expressions, and named project routing expressionsES|QL visualizations (
esorql.md):SET project_routingin an ES|QL visualization triggers a Custom CPS scope badge on the dashboard panelCloses elastic/docs-content-internal#685
Test plan
explore-analyze/query-filter/languages/esql-kibanaandexplore-analyze/visualize/esorqlapplies_totags render properly (serverless preview / stack unavailable)SET project_routingautocomplete in ES|QL editor with CPS enabledGenerative AI disclosure
Tool(s) and model(s) used: Claude (Cursor)
Made with Cursor