Skip to content

[ES|QL] Move to query locations#216110

Merged
drewdaemon merged 21 commits intoelastic:mainfrom
drewdaemon:209359/filtering-in-stats-2
Mar 27, 2025
Merged

[ES|QL] Move to query locations#216110
drewdaemon merged 21 commits intoelastic:mainfrom
drewdaemon:209359/filtering-in-stats-2

Conversation

@drewdaemon
Copy link
Contributor

@drewdaemon drewdaemon commented Mar 26, 2025

Summary

This PR replaces FunctionDefinition.supportedCommands and FunctionDefinition.supportedOptions with FunctionDefinition.locationsAvailable.

This will still allow us fine-grained control over where functions are suggested and allows in various contexts but it is extensible to any scenario—no longer confined to rigid lists of "option" and command names.

Prerequisite to #209359

@drewdaemon drewdaemon changed the title [ES|QL] Filtering in stats [ES|QL] Move to query locations Mar 26, 2025
@drewdaemon drewdaemon added v9.1.0 v8.19.0 release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels Team:ESQL ES|QL related features in Kibana t// Feature:ES|QL ES|QL related features in Kibana labels Mar 26, 2025
@drewdaemon drewdaemon marked this pull request as ready for review March 27, 2025 02:11
@drewdaemon drewdaemon requested a review from a team as a code owner March 27, 2025 02:11
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-esql (Team:ESQL)

@drewdaemon drewdaemon enabled auto-merge (squash) March 27, 2025 02:11
Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

A gain in readability, LGTM, code review only

@drewdaemon drewdaemon merged commit 8e6428b into elastic:main Mar 27, 2025
22 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/14100472994

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 216110

Questions ?

Please refer to the Backport tool documentation

@drewdaemon
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

drewdaemon added a commit to drewdaemon/kibana that referenced this pull request Mar 27, 2025
This PR replaces `FunctionDefinition.supportedCommands` and
`FunctionDefinition.supportedOptions` with
`FunctionDefinition.locationsAvailable`.

This will still allow us fine-grained control over where functions are
suggested and allows in various contexts but it is extensible to any
scenario—no longer confined to rigid lists of "option" and command
names.

Prerequisite to elastic#209359

(cherry picked from commit 8e6428b)
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 31, 2025
@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

stratoula added a commit that referenced this pull request Mar 31, 2025
# Backport

This will backport the following commits from `main` to `8.x`:
- [[ES|QL] Move to query locations
(#216110)](#216110)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Drew
Tate","email":"drew.tate@elastic.co"},"sourceCommit":{"committedDate":"2025-03-27T06:41:50Z","message":"[ES|QL]
Move to query locations (#216110)\n\n## Summary\n\nThis PR replaces
`FunctionDefinition.supportedCommands`
and\n`FunctionDefinition.supportedOptions`
with\n`FunctionDefinition.locationsAvailable`.\n\nThis will still allow
us fine-grained control over where functions are\nsuggested and allows
in various contexts but it is extensible to any\nscenario—no longer
confined to rigid lists of \"option\" and
command\nnames.\n\nPrerequisite to
https://github.com/elastic/kibana/issues/209359","sha":"8e6428b452b67486bade7d74e38ea37295aa6deb","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:ES|QL","Team:ESQL","backport:version","v9.1.0","v8.19.0"],"title":"[ES|QL]
Move to query
locations","number":216110,"url":"https://github.com/elastic/kibana/pull/216110","mergeCommit":{"message":"[ES|QL]
Move to query locations (#216110)\n\n## Summary\n\nThis PR replaces
`FunctionDefinition.supportedCommands`
and\n`FunctionDefinition.supportedOptions`
with\n`FunctionDefinition.locationsAvailable`.\n\nThis will still allow
us fine-grained control over where functions are\nsuggested and allows
in various contexts but it is extensible to any\nscenario—no longer
confined to rigid lists of \"option\" and
command\nnames.\n\nPrerequisite to
https://github.com/elastic/kibana/issues/209359","sha":"8e6428b452b67486bade7d74e38ea37295aa6deb"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216110","number":216110,"mergeCommit":{"message":"[ES|QL]
Move to query locations (#216110)\n\n## Summary\n\nThis PR replaces
`FunctionDefinition.supportedCommands`
and\n`FunctionDefinition.supportedOptions`
with\n`FunctionDefinition.locationsAvailable`.\n\nThis will still allow
us fine-grained control over where functions are\nsuggested and allows
in various contexts but it is extensible to any\nscenario—no longer
confined to rigid lists of \"option\" and
command\nnames.\n\nPrerequisite to
https://github.com/elastic/kibana/issues/209359","sha":"8e6428b452b67486bade7d74e38ea37295aa6deb"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 31, 2025
cqliu1 pushed a commit to cqliu1/kibana that referenced this pull request Mar 31, 2025
## Summary

This PR replaces `FunctionDefinition.supportedCommands` and
`FunctionDefinition.supportedOptions` with
`FunctionDefinition.locationsAvailable`.

This will still allow us fine-grained control over where functions are
suggested and allows in various contexts but it is extensible to any
scenario—no longer confined to rigid lists of "option" and command
names.

Prerequisite to elastic#209359
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels Feature:ES|QL ES|QL related features in Kibana release_note:skip Skip the PR/issue when compiling release notes Team:ESQL ES|QL related features in Kibana t// v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants