Skip to content

[9.4] [ES|QL] Handles dom exceptions (#270603)#271169

Merged
stratoula merged 3 commits into
elastic:9.4from
stratoula:backport/9.4/pr-270603
May 26, 2026
Merged

[9.4] [ES|QL] Handles dom exceptions (#270603)#271169
stratoula merged 3 commits into
elastic:9.4from
stratoula:backport/9.4/pr-270603

Conversation

@stratoula
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

## Summary

This is a regression caused by
elastic#242346. It changed the error:
from the original throwError(() => new AbortError()) to throwError(() =>
new AbortError((e.target as AbortSignal)?.reason)), intending to
preserve the abort reason in the error.

The editor though was not handling this kind of errors correctly causing
the following bug:

- I am in Lens ES|QL
- I cancel the query
- I see an error at the footer of my editor
- I click the error
- 💥

This PR handles this kind of errors gracefully

<img width="722" height="493" alt="image"
src="https://github.com/user-attachments/assets/374eadfd-93e0-47d8-8e2f-a2e2c1e3caaf"
/>

### Checklist

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 55690be)

# Conflicts:
#	src/platform/packages/private/kbn-esql-editor/src/helpers.ts
@stratoula stratoula requested a review from kibanamachine as a code owner May 26, 2026 05:16
@stratoula stratoula added the backport This PR is a backport of another PR label May 26, 2026
@stratoula stratoula enabled auto-merge (squash) May 26, 2026 05:16
@stratoula stratoula mentioned this pull request May 26, 2026
1 task
@kibanamachine kibanamachine requested review from sddonne and removed request for kibanamachine May 26, 2026 05:16
@kibanamachine
Copy link
Copy Markdown
Contributor

kibanamachine commented May 26, 2026

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Scout Lane #8 - stateful-classic / default / local-stateful-classic - Observability Landing Page (discover.isEsqlDefault enabled) - redirects to onboarding when no logs data exists
  • [job] [logs] Scout Lane #8 - stateful-classic / default / local-stateful-classic - Profiling is setup and data is loaded - Admin user
  • [job] [logs] Scout Lane #16 - stateful-classic / workflows_ui / local-stateful-classic - Workflow execution concurrency control - cancel-in-progress strategy cancels previous executions and completes the latest
  • [job] [logs] Scout Lane #16 - stateful-classic / workflows_ui / local-stateful-classic - Workflow execution concurrency control - cancel-in-progress strategy cancels previous executions and completes the latest
  • [job] [logs] Scout Lane #16 - stateful-classic / workflows_ui / local-stateful-classic - Workflow execution concurrency control - drop strategy drops new executions until there is an already running execution

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
esql 888.8KB 888.9KB +27.0B

History

@stratoula stratoula disabled auto-merge May 26, 2026 08:29
@stratoula stratoula merged commit e8985e4 into elastic:9.4 May 26, 2026
27 of 28 checks passed
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.

2 participants