Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ES|QL] Create validation errors for unknown parameters #197334

Merged

Conversation

drewdaemon
Copy link
Contributor

@drewdaemon drewdaemon commented Oct 22, 2024

Summary

Follow-up from #195989.

We discussed as a team and decided to show validation errors when an unknown variable is used as an argument to subsequent functions.

Before
Screenshot 2024-10-22 at 1 41 08 PM

After
Screenshot 2024-10-22 at 1 41 29 PM

@drewdaemon drewdaemon added v9.0.0 v8.16.0 v8.17.0 Team:ESQL ES|QL related features in Kibana backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Feature:ES|QL ES|QL related features in Kibana labels Oct 22, 2024
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #31 / Alerting alerts_as_data alerts as data flapping should allow rule specific flapping to override space flapping

Metrics [docs]

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.4MB 3.4MB -15.0B

@drewdaemon drewdaemon marked this pull request as ready for review October 22, 2024 21:59
@drewdaemon drewdaemon requested a review from a team as a code owner October 22, 2024 21:59
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

Nice, I like it even more now that I see it in action, LGTM!

@drewdaemon drewdaemon merged commit e1c0cef into elastic:main Oct 23, 2024
37 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 23, 2024
## Summary

Follow-up from elastic#195989.

We discussed as a team and decided to show validation errors when an
unknown variable is used as an argument to subsequent functions.

**Before**
<img width="589" alt="Screenshot 2024-10-22 at 1 41 08 PM"
src="https://github.com/user-attachments/assets/872d3302-ddfe-415f-9c98-e2c682344189">

**After**
<img width="570" alt="Screenshot 2024-10-22 at 1 41 29 PM"
src="https://github.com/user-attachments/assets/b7e29c2d-ee40-4730-b1ab-43d95dfd264c">

(cherry picked from commit e1c0cef)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 23, 2024
## Summary

Follow-up from elastic#195989.

We discussed as a team and decided to show validation errors when an
unknown variable is used as an argument to subsequent functions.

**Before**
<img width="589" alt="Screenshot 2024-10-22 at 1 41 08 PM"
src="https://github.com/user-attachments/assets/872d3302-ddfe-415f-9c98-e2c682344189">

**After**
<img width="570" alt="Screenshot 2024-10-22 at 1 41 29 PM"
src="https://github.com/user-attachments/assets/b7e29c2d-ee40-4730-b1ab-43d95dfd264c">

(cherry picked from commit e1c0cef)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.16
8.x

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 Oct 23, 2024
…) (#197451)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[ES|QL] Create validation errors for unknown parameters
(#197334)](#197334)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Drew
Tate","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-23T13:49:38Z","message":"[ES|QL]
Create validation errors for unknown parameters (#197334)\n\n##
Summary\r\n\r\nFollow-up from
https://github.com/elastic/kibana/pull/195989.\r\n\r\nWe discussed as a
team and decided to show validation errors when an\r\nunknown variable
is used as an argument to subsequent
functions.\r\n\r\n**Before**\r\n<img width=\"589\" alt=\"Screenshot
2024-10-22 at 1 41
08 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/872d3302-ddfe-415f-9c98-e2c682344189\">\r\n\r\n\r\n**After**\r\n<img
width=\"570\" alt=\"Screenshot 2024-10-22 at 1 41
29 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/b7e29c2d-ee40-4730-b1ab-43d95dfd264c\">","sha":"e1c0cef15dd7f771a621db0230bf4cddcf10815b","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Feature:ES|QL","Team:ESQL","v8.16.0","backport:version","v8.17.0"],"title":"[ES|QL]
Create validation errors for unknown
parameters","number":197334,"url":"https://github.com/elastic/kibana/pull/197334","mergeCommit":{"message":"[ES|QL]
Create validation errors for unknown parameters (#197334)\n\n##
Summary\r\n\r\nFollow-up from
https://github.com/elastic/kibana/pull/195989.\r\n\r\nWe discussed as a
team and decided to show validation errors when an\r\nunknown variable
is used as an argument to subsequent
functions.\r\n\r\n**Before**\r\n<img width=\"589\" alt=\"Screenshot
2024-10-22 at 1 41
08 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/872d3302-ddfe-415f-9c98-e2c682344189\">\r\n\r\n\r\n**After**\r\n<img
width=\"570\" alt=\"Screenshot 2024-10-22 at 1 41
29 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/b7e29c2d-ee40-4730-b1ab-43d95dfd264c\">","sha":"e1c0cef15dd7f771a621db0230bf4cddcf10815b"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197334","number":197334,"mergeCommit":{"message":"[ES|QL]
Create validation errors for unknown parameters (#197334)\n\n##
Summary\r\n\r\nFollow-up from
https://github.com/elastic/kibana/pull/195989.\r\n\r\nWe discussed as a
team and decided to show validation errors when an\r\nunknown variable
is used as an argument to subsequent
functions.\r\n\r\n**Before**\r\n<img width=\"589\" alt=\"Screenshot
2024-10-22 at 1 41
08 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/872d3302-ddfe-415f-9c98-e2c682344189\">\r\n\r\n\r\n**After**\r\n<img
width=\"570\" alt=\"Screenshot 2024-10-22 at 1 41
29 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/b7e29c2d-ee40-4730-b1ab-43d95dfd264c\">","sha":"e1c0cef15dd7f771a621db0230bf4cddcf10815b"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Drew Tate <[email protected]>
kibanamachine added a commit that referenced this pull request Oct 23, 2024
… (#197452)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ES|QL] Create validation errors for unknown parameters
(#197334)](#197334)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Drew
Tate","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-23T13:49:38Z","message":"[ES|QL]
Create validation errors for unknown parameters (#197334)\n\n##
Summary\r\n\r\nFollow-up from
https://github.com/elastic/kibana/pull/195989.\r\n\r\nWe discussed as a
team and decided to show validation errors when an\r\nunknown variable
is used as an argument to subsequent
functions.\r\n\r\n**Before**\r\n<img width=\"589\" alt=\"Screenshot
2024-10-22 at 1 41
08 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/872d3302-ddfe-415f-9c98-e2c682344189\">\r\n\r\n\r\n**After**\r\n<img
width=\"570\" alt=\"Screenshot 2024-10-22 at 1 41
29 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/b7e29c2d-ee40-4730-b1ab-43d95dfd264c\">","sha":"e1c0cef15dd7f771a621db0230bf4cddcf10815b","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Feature:ES|QL","Team:ESQL","v8.16.0","backport:version","v8.17.0"],"title":"[ES|QL]
Create validation errors for unknown
parameters","number":197334,"url":"https://github.com/elastic/kibana/pull/197334","mergeCommit":{"message":"[ES|QL]
Create validation errors for unknown parameters (#197334)\n\n##
Summary\r\n\r\nFollow-up from
https://github.com/elastic/kibana/pull/195989.\r\n\r\nWe discussed as a
team and decided to show validation errors when an\r\nunknown variable
is used as an argument to subsequent
functions.\r\n\r\n**Before**\r\n<img width=\"589\" alt=\"Screenshot
2024-10-22 at 1 41
08 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/872d3302-ddfe-415f-9c98-e2c682344189\">\r\n\r\n\r\n**After**\r\n<img
width=\"570\" alt=\"Screenshot 2024-10-22 at 1 41
29 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/b7e29c2d-ee40-4730-b1ab-43d95dfd264c\">","sha":"e1c0cef15dd7f771a621db0230bf4cddcf10815b"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197334","number":197334,"mergeCommit":{"message":"[ES|QL]
Create validation errors for unknown parameters (#197334)\n\n##
Summary\r\n\r\nFollow-up from
https://github.com/elastic/kibana/pull/195989.\r\n\r\nWe discussed as a
team and decided to show validation errors when an\r\nunknown variable
is used as an argument to subsequent
functions.\r\n\r\n**Before**\r\n<img width=\"589\" alt=\"Screenshot
2024-10-22 at 1 41
08 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/872d3302-ddfe-415f-9c98-e2c682344189\">\r\n\r\n\r\n**After**\r\n<img
width=\"570\" alt=\"Screenshot 2024-10-22 at 1 41
29 PM\"\r\nsrc=\"https://github.com/user-attachments/assets/b7e29c2d-ee40-4730-b1ab-43d95dfd264c\">","sha":"e1c0cef15dd7f771a621db0230bf4cddcf10815b"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Drew Tate <[email protected]>
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 v8.16.0 v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants