Skip to content

Conversation

@ElenaStoeva
Copy link
Contributor

Follow-up to #240264

Summary

This PR fixes a small regression introduced by #240264, where ESQL suggestions are no longer displayed for _query/async endpoints and they should be.

With this change, ESQL suggesstions should be displayed for the following endpoints:

_query
/_query
_query?...
/_query?...
_query/async
/_query/async
_query/async?...
/_query/async?...

@ElenaStoeva ElenaStoeva requested a review from a team October 31, 2025 09:51
@ElenaStoeva ElenaStoeva self-assigned this Oct 31, 2025
@ElenaStoeva ElenaStoeva requested a review from a team as a code owner October 31, 2025 09:51
@ElenaStoeva ElenaStoeva added Feature:Console Dev Tools Console Feature Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Oct 31, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

Copy link
Contributor

@SoniaSanzV SoniaSanzV left a comment

Choose a reason for hiding this comment

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

Thank you @ElenaStoeva! I'm sorry I didn't catch that regression in my review.

ESQL suggestions look good to me in all cases, but I found something that I don't know if it's related to this PR.

For _query request I get suggestions for the body, but not for _query/async

Screenshot 2025-10-31 at 13 54 33 Screenshot 2025-10-31 at 13 53 25

Once I type "query" myself, I get the suggestions as expected:
Screenshot 2025-10-31 at 13 55 28

@ElenaStoeva
Copy link
Contributor Author

Thanks for reviewing @SoniaSanzV! Yeah, I noticed that too but that's not related to the ESQL suggestions - it happens because we don't have specs for the body param autocompletions for this endpoint, while the _query endpoint does - src/platform/plugins/shared/console/server/lib/spec_definitions/json/overrides/esql.query.json.

Copy link
Contributor

@SoniaSanzV SoniaSanzV left a comment

Choose a reason for hiding this comment

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

Thank you for clarification @ElenaStoeva! Approving!

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

Labels

backport:skip This PR does not require backporting Feature:Console Dev Tools Console Feature release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants