-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ES|QL] Create validation errors for unknown parameters #197334
Conversation
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Page load bundle
|
Pinging @elastic/kibana-esql (Team:ESQL) |
There was a problem hiding this 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!
Starting backport for target branches: 8.16, 8.x |
## 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)
## 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)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…) (#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]>
… (#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]>
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
After