Skip to content

[ES|QL] fix: don't let clear ESQL control type#226122

Merged
sddonne merged 1 commit intoelastic:mainfrom
sddonne:fix-esql-controls
Jul 2, 2025
Merged

[ES|QL] fix: don't let clear ESQL control type#226122
sddonne merged 1 commit intoelastic:mainfrom
sddonne:fix-esql-controls

Conversation

@sddonne
Copy link
Contributor

@sddonne sddonne commented Jul 2, 2025

Summary

When attempting to clear the control type an uncaught error occurs.

shared_form_components.tsx:56 Uncaught TypeError: Cannot read properties of undefined (reading 'key')
    at shared_form_components.tsx:56:1

As the type is mandatory, make the select un-clearable.

image

@sddonne sddonne requested a review from a team as a code owner July 2, 2025 10:00
@sddonne sddonne added release_note:skip Skip the PR/issue when compiling release notes Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana t// backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.2.0 labels Jul 2, 2025
@elasticmachine
Copy link
Contributor

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

@sddonne sddonne requested a review from stratoula July 2, 2025 10:01
@sddonne sddonne merged commit 1b17e02 into elastic:main Jul 2, 2025
26 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 2, 2025
## Summary
When attempting to clear the control type an uncaught error occurs.
```
shared_form_components.tsx:56 Uncaught TypeError: Cannot read properties of undefined (reading 'key')
    at shared_form_components.tsx:56:1
```

As the type is mandatory, make the select un-clearable.

<img width="581" alt="image"
src="https://github.com/user-attachments/assets/e7b10080-0886-4a03-b8eb-4b8cca597294"
/>

(cherry picked from commit 1b17e02)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 2, 2025
## Summary
When attempting to clear the control type an uncaught error occurs.
```
shared_form_components.tsx:56 Uncaught TypeError: Cannot read properties of undefined (reading 'key')
    at shared_form_components.tsx:56:1
```

As the type is mandatory, make the select un-clearable.

<img width="581" alt="image"
src="https://github.com/user-attachments/assets/e7b10080-0886-4a03-b8eb-4b8cca597294"
/>

(cherry picked from commit 1b17e02)
@kibanamachine
Copy link
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 2, 2025
)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[ES|QL] fix: don't let clear ESQL control type
(#226122)](#226122)

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

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

<!--BACKPORT [{"author":{"name":"Sebastian Delle
Donne","email":"sebastian.delledonne@elastic.co"},"sourceCommit":{"committedDate":"2025-07-02T13:32:03Z","message":"[ES|QL]
fix: don't let clear ESQL control type (#226122)\n\n## Summary\nWhen
attempting to clear the control type an uncaught error
occurs.\n```\nshared_form_components.tsx:56 Uncaught TypeError: Cannot
read properties of undefined (reading 'key')\n at
shared_form_components.tsx:56:1\n```\n\nAs the type is mandatory, make
the select un-clearable.\n\n<img width=\"581\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e7b10080-0886-4a03-b8eb-4b8cca597294\"\n/>","sha":"1b17e02ccbcaf04b4c16a2a75ba377441f50d2bc","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: don't let clear ESQL control
type","number":226122,"url":"https://github.com/elastic/kibana/pull/226122","mergeCommit":{"message":"[ES|QL]
fix: don't let clear ESQL control type (#226122)\n\n## Summary\nWhen
attempting to clear the control type an uncaught error
occurs.\n```\nshared_form_components.tsx:56 Uncaught TypeError: Cannot
read properties of undefined (reading 'key')\n at
shared_form_components.tsx:56:1\n```\n\nAs the type is mandatory, make
the select un-clearable.\n\n<img width=\"581\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e7b10080-0886-4a03-b8eb-4b8cca597294\"\n/>","sha":"1b17e02ccbcaf04b4c16a2a75ba377441f50d2bc"}},"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/226122","number":226122,"mergeCommit":{"message":"[ES|QL]
fix: don't let clear ESQL control type (#226122)\n\n## Summary\nWhen
attempting to clear the control type an uncaught error
occurs.\n```\nshared_form_components.tsx:56 Uncaught TypeError: Cannot
read properties of undefined (reading 'key')\n at
shared_form_components.tsx:56:1\n```\n\nAs the type is mandatory, make
the select un-clearable.\n\n<img width=\"581\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e7b10080-0886-4a03-b8eb-4b8cca597294\"\n/>","sha":"1b17e02ccbcaf04b4c16a2a75ba377441f50d2bc"}}]}]
BACKPORT-->

Co-authored-by: Sebastian Delle Donne <sebastian.delledonne@elastic.co>
kibanamachine added a commit that referenced this pull request Jul 2, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [[ES|QL] fix: don't let clear ESQL control type
(#226122)](#226122)

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

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

<!--BACKPORT [{"author":{"name":"Sebastian Delle
Donne","email":"sebastian.delledonne@elastic.co"},"sourceCommit":{"committedDate":"2025-07-02T13:32:03Z","message":"[ES|QL]
fix: don't let clear ESQL control type (#226122)\n\n## Summary\nWhen
attempting to clear the control type an uncaught error
occurs.\n```\nshared_form_components.tsx:56 Uncaught TypeError: Cannot
read properties of undefined (reading 'key')\n at
shared_form_components.tsx:56:1\n```\n\nAs the type is mandatory, make
the select un-clearable.\n\n<img width=\"581\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e7b10080-0886-4a03-b8eb-4b8cca597294\"\n/>","sha":"1b17e02ccbcaf04b4c16a2a75ba377441f50d2bc","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: don't let clear ESQL control
type","number":226122,"url":"https://github.com/elastic/kibana/pull/226122","mergeCommit":{"message":"[ES|QL]
fix: don't let clear ESQL control type (#226122)\n\n## Summary\nWhen
attempting to clear the control type an uncaught error
occurs.\n```\nshared_form_components.tsx:56 Uncaught TypeError: Cannot
read properties of undefined (reading 'key')\n at
shared_form_components.tsx:56:1\n```\n\nAs the type is mandatory, make
the select un-clearable.\n\n<img width=\"581\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e7b10080-0886-4a03-b8eb-4b8cca597294\"\n/>","sha":"1b17e02ccbcaf04b4c16a2a75ba377441f50d2bc"}},"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/226122","number":226122,"mergeCommit":{"message":"[ES|QL]
fix: don't let clear ESQL control type (#226122)\n\n## Summary\nWhen
attempting to clear the control type an uncaught error
occurs.\n```\nshared_form_components.tsx:56 Uncaught TypeError: Cannot
read properties of undefined (reading 'key')\n at
shared_form_components.tsx:56:1\n```\n\nAs the type is mandatory, make
the select un-clearable.\n\n<img width=\"581\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e7b10080-0886-4a03-b8eb-4b8cca597294\"\n/>","sha":"1b17e02ccbcaf04b4c16a2a75ba377441f50d2bc"}}]}]
BACKPORT-->

Co-authored-by: Sebastian Delle Donne <sebastian.delledonne@elastic.co>
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
## Summary
When attempting to clear the control type an uncaught error occurs.
```
shared_form_components.tsx:56 Uncaught TypeError: Cannot read properties of undefined (reading 'key')
    at shared_form_components.tsx:56:1
```

As the type is mandatory, make the select un-clearable.

<img width="581" alt="image"
src="https://github.com/user-attachments/assets/e7b10080-0886-4a03-b8eb-4b8cca597294"
/>
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.

4 participants