Skip to content

[ES|QL] Fix empty editor syntax error bug#228482

Merged
drewdaemon merged 36 commits intoelastic:mainfrom
drewdaemon:228244/empty-editor-bug
Jul 18, 2025
Merged

[ES|QL] Fix empty editor syntax error bug#228482
drewdaemon merged 36 commits intoelastic:mainfrom
drewdaemon:228244/empty-editor-bug

Conversation

@drewdaemon
Copy link
Copy Markdown
Contributor

@drewdaemon drewdaemon commented Jul 17, 2025

Summary

Fix #228244

The "empty query" syntax error should be suppressed in Kibana. #225751 introduced a regression to this behavior.

This PR reinstates the old behavior and hopefully makes the intent of test case clearer.

@drewdaemon drewdaemon added backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.2.0 Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana t// release_note:skip Skip the PR/issue when compiling release notes labels Jul 17, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #99 / Stateful Observability - Deployment-agnostic APM API integration tests APM alerts preview chart transaction duration with data loaded and using KQL filter transaction_duration: with data loaded and using KQL filter with no group by parameter

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 9.8MB 9.8MB -11.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
kbnUiSharedDeps-srcJs 3.8MB 3.8MB -11.0B

@drewdaemon drewdaemon marked this pull request as ready for review July 17, 2025 17:43
@drewdaemon drewdaemon requested a review from a team as a code owner July 17, 2025 17:43
@elasticmachine
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

@sddonne sddonne left a comment

Choose a reason for hiding this comment

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

lgtm!

@drewdaemon drewdaemon merged commit f19783f into elastic:main Jul 18, 2025
28 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.1

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 18, 2025
## Summary

Fix elastic#228244

The "empty query" syntax error should be suppressed in Kibana.
elastic#225751 introduced a regression to
this behavior.

This PR reinstates the old behavior and hopefully makes the intent of
test case clearer.

(cherry picked from commit f19783f)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 18, 2025
## Summary

Fix elastic#228244

The "empty query" syntax error should be suppressed in Kibana.
elastic#225751 introduced a regression to
this behavior.

This PR reinstates the old behavior and hopefully makes the intent of
test case clearer.

(cherry picked from commit f19783f)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 18, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [[ES|QL] Fix empty editor syntax error bug
(#228482)](#228482)

<!--- 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-07-18T15:13:57Z","message":"[ES|QL]
Fix empty editor syntax error bug (#228482)\n\n## Summary\n\nFix
https://github.com/elastic/kibana/issues/228244\n\nThe \"empty query\"
syntax error should be suppressed in
Kibana.\nhttps://github.com//pull/225751 introduced a
regression to\nthis behavior.\n\nThis PR reinstates the old behavior and
hopefully makes the intent of\ntest case
clearer.","sha":"f19783f87e192eed0e52a480e92d7a8518959a29","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:ES|QL","Team:ESQL","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[ES|QL]
Fix empty editor syntax error
bug","number":228482,"url":"https://github.com/elastic/kibana/pull/228482","mergeCommit":{"message":"[ES|QL]
Fix empty editor syntax error bug (#228482)\n\n## Summary\n\nFix
https://github.com/elastic/kibana/issues/228244\n\nThe \"empty query\"
syntax error should be suppressed in
Kibana.\nhttps://github.com//pull/225751 introduced a
regression to\nthis behavior.\n\nThis PR reinstates the old behavior and
hopefully makes the intent of\ntest case
clearer.","sha":"f19783f87e192eed0e52a480e92d7a8518959a29"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/228482","number":228482,"mergeCommit":{"message":"[ES|QL]
Fix empty editor syntax error bug (#228482)\n\n## Summary\n\nFix
https://github.com/elastic/kibana/issues/228244\n\nThe \"empty query\"
syntax error should be suppressed in
Kibana.\nhttps://github.com//pull/225751 introduced a
regression to\nthis behavior.\n\nThis PR reinstates the old behavior and
hopefully makes the intent of\ntest case
clearer.","sha":"f19783f87e192eed0e52a480e92d7a8518959a29"}}]}]
BACKPORT-->

Co-authored-by: Drew Tate <drew.tate@elastic.co>
@stratoula
Copy link
Copy Markdown
Contributor

Thanx for fixing this Drew!

kibanamachine added a commit that referenced this pull request Jul 22, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [[ES|QL] Fix empty editor syntax error bug
(#228482)](#228482)

<!--- 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-07-18T15:13:57Z","message":"[ES|QL]
Fix empty editor syntax error bug (#228482)\n\n## Summary\n\nFix
https://github.com/elastic/kibana/issues/228244\n\nThe \"empty query\"
syntax error should be suppressed in
Kibana.\nhttps://github.com//pull/225751 introduced a
regression to\nthis behavior.\n\nThis PR reinstates the old behavior and
hopefully makes the intent of\ntest case
clearer.","sha":"f19783f87e192eed0e52a480e92d7a8518959a29","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:ES|QL","Team:ESQL","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[ES|QL]
Fix empty editor syntax error
bug","number":228482,"url":"https://github.com/elastic/kibana/pull/228482","mergeCommit":{"message":"[ES|QL]
Fix empty editor syntax error bug (#228482)\n\n## Summary\n\nFix
https://github.com/elastic/kibana/issues/228244\n\nThe \"empty query\"
syntax error should be suppressed in
Kibana.\nhttps://github.com//pull/225751 introduced a
regression to\nthis behavior.\n\nThis PR reinstates the old behavior and
hopefully makes the intent of\ntest case
clearer.","sha":"f19783f87e192eed0e52a480e92d7a8518959a29"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/228482","number":228482,"mergeCommit":{"message":"[ES|QL]
Fix empty editor syntax error bug (#228482)\n\n## Summary\n\nFix
https://github.com/elastic/kibana/issues/228244\n\nThe \"empty query\"
syntax error should be suppressed in
Kibana.\nhttps://github.com//pull/225751 introduced a
regression to\nthis behavior.\n\nThis PR reinstates the old behavior and
hopefully makes the intent of\ntest case
clearer.","sha":"f19783f87e192eed0e52a480e92d7a8518959a29"}}]}]
BACKPORT-->

Co-authored-by: Drew Tate <drew.tate@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Bluefinger pushed a commit to Bluefinger/kibana that referenced this pull request Jul 22, 2025
## Summary

Fix elastic#228244

The "empty query" syntax error should be suppressed in Kibana.
elastic#225751 introduced a regression to
this behavior.

This PR reinstates the old behavior and hopefully makes the intent of
test case clearer.
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
## Summary

Fix elastic#228244

The "empty query" syntax error should be suppressed in Kibana.
elastic#225751 introduced a regression to
this behavior.

This PR reinstates the old behavior and hopefully makes the intent of
test case clearer.
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 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ES|QL Editor] Error reported for empty query

5 participants