Skip to content

[8.19] [Console] Only show ESQL suggestions in ESQL query request (#240264)#255283

Merged
ElenaStoeva merged 2 commits intoelastic:8.19from
ElenaStoeva:backport/8.19/pr-240264
Feb 27, 2026
Merged

[8.19] [Console] Only show ESQL suggestions in ESQL query request (#240264)#255283
ElenaStoeva merged 2 commits intoelastic:8.19from
ElenaStoeva:backport/8.19/pr-240264

Conversation

@ElenaStoeva
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

…40264)

Closes elastic#225685

## Summary

Previously, ESQL suggestions were shown inside all `query` body params
(`"query": "...` or `"query": """...`). However, there are some requests
with a `query` body param that don't work with ESLQ (e.g. SQL query).
This PR makes sure that ESQL suggestions are only displayed inside `POST
_query` request (which is the request for sending ESQL queries).

**How to test:**

Verify that ESQL suggestions are displayed in `POST _query` requests:

```
POST /_query
{
  "query": "..."
}
```

Verify that ESQL suggestions are **not** displayed in any other
requests; for example:

```
POST /_sql
{
  "query": "...."
}
```

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 7f03a89)

# Conflicts:
#	src/platform/packages/shared/kbn-monaco/src/console/index.ts
#	src/platform/plugins/shared/console/public/application/containers/editor/monaco_editor_actions_provider.ts
@ElenaStoeva ElenaStoeva added the backport This PR is a backport of another PR label Feb 27, 2026
@ElenaStoeva ElenaStoeva enabled auto-merge (squash) February 27, 2026 10:24
@ElenaStoeva ElenaStoeva merged commit 3b12a0a into elastic:8.19 Feb 27, 2026
13 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

The CI Stats report is too large to be displayed here, check out the CI build annotation for this information.

History

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants