[ES|QL] Hides the actions and the "View problem" from the editor#213325
[ES|QL] Hides the actions and the "View problem" from the editor#213325stratoula merged 6 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/kibana-esql (Team:ESQL) |
drewdaemon
left a comment
There was a problem hiding this comment.
MORE RED MORE RED
Let's remove actions.ts!!!
|
I was thinking to not remove all the code tbh 🤔 Just hide it for now. Mostly because it is used by the ai assistant |
|
Do you know something, yes let's remove all the code, feels good and although there is a usage from ai assistant, it doesnt seem to be used anywhere. |
| * - Combination of the above | ||
| */ | ||
|
|
||
| export const correctQueryWithActions = async (queryString: string) => { |
There was a problem hiding this comment.
Seems as this function is not used anywhere anymore
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
History
|
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/13783734731 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
…stic#213325) ## Summary Hides the actions and the view problem from the hover. (I didnt remove the code, we might want to enable it again in the future but we need to fix the bug I mention below) **Now** <img width="719" alt="image" src="https://github.com/user-attachments/assets/423cfbdd-e067-409c-8eb4-1e2c2cc17649" /> **Before** <img width="617" alt="image" src="https://github.com/user-attachments/assets/7ec5f48d-af8b-4676-84f4-9fa4a0d8f220" /> 1. Quick fixes has a lot of bugs such as: - elastic#180491 - It is not easy to select it  2. View problem doesn't appear correctly and it just repeats the error that exists already in the hover  3. Quick fixes are fixing now typos such as - index patterns - policies - field names - metadata options - quotes Our autocomplete is good enough to solve these so this is not so helpful. This PR hides the actions as they don't work correctly. We should reconsider displaying them again but for more sophisticated fixes such as: elastic#177554 (not for enrich but for joins) We should fix the bug first (quick fix is not clickable) (cherry picked from commit b9472b6) # Conflicts: # src/platform/packages/shared/kbn-monaco/src/esql/lib/converters/actions.ts # src/platform/packages/shared/kbn-monaco/src/esql/lib/esql_ast_provider.ts
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
#213325) (#213875) # Backport This will backport the following commits from `main` to `8.x`: - [[ES|QL] Hides the actions and the "View problem" from the editor (#213325)](#213325) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Stratoula Kalafateli","email":"efstratia.kalafateli@elastic.co"},"sourceCommit":{"committedDate":"2025-03-11T08:40:26Z","message":"[ES|QL] Hides the actions and the \"View problem\" from the editor (#213325)\n\n## Summary\n\nHides the actions and the view problem from the hover. (I didnt remove\nthe code, we might want to enable it again in the future but we need to\nfix the bug I mention below)\n\n**Now**\n\n<img width=\"719\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/423cfbdd-e067-409c-8eb4-1e2c2cc17649\"\n/>\n\n\n**Before**\n\n<img width=\"617\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/7ec5f48d-af8b-4676-84f4-9fa4a0d8f220\"\n/>\n\n1. Quick fixes has a lot of bugs such as:\n- https://github.com/elastic/kibana/issues/180491\n- It is not easy to select it \n\n\n\n\n2. View problem doesn't appear correctly and it just repeats the error\nthat exists already in the hover\n\n\n\n\n3. Quick fixes are fixing now typos such as\n- index patterns\n- policies\n- field names\n- metadata options\n- quotes \n\nOur autocomplete is good enough to solve these so this is not so\nhelpful.\n\n\nThis PR hides the actions as they don't work correctly. We should\nreconsider displaying them again but for more sophisticated fixes such\nas:\n\nhttps://github.com//issues/177554 (not for enrich but for\njoins)\n\nWe should fix the bug first (quick fix is not clickable)","sha":"b9472b6ade4459f7dd3d15cccb5e2048fd377613","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:ES|QL","Team:ESQL","backport:version","v9.1.0","v8.19.0"],"title":"[ES|QL] Hides the actions and the \"View problem\" from the editor","number":213325,"url":"https://github.com/elastic/kibana/pull/213325","mergeCommit":{"message":"[ES|QL] Hides the actions and the \"View problem\" from the editor (#213325)\n\n## Summary\n\nHides the actions and the view problem from the hover. (I didnt remove\nthe code, we might want to enable it again in the future but we need to\nfix the bug I mention below)\n\n**Now**\n\n<img width=\"719\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/423cfbdd-e067-409c-8eb4-1e2c2cc17649\"\n/>\n\n\n**Before**\n\n<img width=\"617\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/7ec5f48d-af8b-4676-84f4-9fa4a0d8f220\"\n/>\n\n1. Quick fixes has a lot of bugs such as:\n- https://github.com/elastic/kibana/issues/180491\n- It is not easy to select it \n\n\n\n\n2. View problem doesn't appear correctly and it just repeats the error\nthat exists already in the hover\n\n\n\n\n3. Quick fixes are fixing now typos such as\n- index patterns\n- policies\n- field names\n- metadata options\n- quotes \n\nOur autocomplete is good enough to solve these so this is not so\nhelpful.\n\n\nThis PR hides the actions as they don't work correctly. We should\nreconsider displaying them again but for more sophisticated fixes such\nas:\n\nhttps://github.com//issues/177554 (not for enrich but for\njoins)\n\nWe should fix the bug first (quick fix is not clickable)","sha":"b9472b6ade4459f7dd3d15cccb5e2048fd377613"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213325","number":213325,"mergeCommit":{"message":"[ES|QL] Hides the actions and the \"View problem\" from the editor (#213325)\n\n## Summary\n\nHides the actions and the view problem from the hover. (I didnt remove\nthe code, we might want to enable it again in the future but we need to\nfix the bug I mention below)\n\n**Now**\n\n<img width=\"719\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/423cfbdd-e067-409c-8eb4-1e2c2cc17649\"\n/>\n\n\n**Before**\n\n<img width=\"617\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/7ec5f48d-af8b-4676-84f4-9fa4a0d8f220\"\n/>\n\n1. Quick fixes has a lot of bugs such as:\n- https://github.com/elastic/kibana/issues/180491\n- It is not easy to select it \n\n\n\n\n2. View problem doesn't appear correctly and it just repeats the error\nthat exists already in the hover\n\n\n\n\n3. Quick fixes are fixing now typos such as\n- index patterns\n- policies\n- field names\n- metadata options\n- quotes \n\nOur autocomplete is good enough to solve these so this is not so\nhelpful.\n\n\nThis PR hides the actions as they don't work correctly. We should\nreconsider displaying them again but for more sophisticated fixes such\nas:\n\nhttps://github.com//issues/177554 (not for enrich but for\njoins)\n\nWe should fix the bug first (quick fix is not clickable)","sha":"b9472b6ade4459f7dd3d15cccb5e2048fd377613"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
## Summary Follow on to several recent efforts including #195418 and #213325 This PR - reorganizes validation code to make dependencies clearer and make it less overwhelming... it's not perfect but it's better - removes the deprecated notion of a command "setting" which only ever applied to `ENRICH`. No regression in `ENRICH` mode validation: <img width="874" alt="Screenshot 2025-03-18 at 1 04 46 PM" src="https://github.com/user-attachments/assets/e6639d8a-d129-440f-ac30-64a2ef6ab65c" /> Or hover <img width="419" alt="Screenshot 2025-03-18 at 7 43 04 PM" src="https://github.com/user-attachments/assets/8f9c020c-dcfd-42dc-8e14-4b1c4311457b" /> ### Checklist - [x] [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 --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…#215056) ## Summary Follow on to several recent efforts including elastic#195418 and elastic#213325 This PR - reorganizes validation code to make dependencies clearer and make it less overwhelming... it's not perfect but it's better - removes the deprecated notion of a command "setting" which only ever applied to `ENRICH`. No regression in `ENRICH` mode validation: <img width="874" alt="Screenshot 2025-03-18 at 1 04 46 PM" src="https://github.com/user-attachments/assets/e6639d8a-d129-440f-ac30-64a2ef6ab65c" /> Or hover <img width="419" alt="Screenshot 2025-03-18 at 7 43 04 PM" src="https://github.com/user-attachments/assets/8f9c020c-dcfd-42dc-8e14-4b1c4311457b" /> ### Checklist - [x] [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 --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…#215056) ## Summary Follow on to several recent efforts including elastic#195418 and elastic#213325 This PR - reorganizes validation code to make dependencies clearer and make it less overwhelming... it's not perfect but it's better - removes the deprecated notion of a command "setting" which only ever applied to `ENRICH`. No regression in `ENRICH` mode validation: <img width="874" alt="Screenshot 2025-03-18 at 1 04 46 PM" src="https://github.com/user-attachments/assets/e6639d8a-d129-440f-ac30-64a2ef6ab65c" /> Or hover <img width="419" alt="Screenshot 2025-03-18 at 7 43 04 PM" src="https://github.com/user-attachments/assets/8f9c020c-dcfd-42dc-8e14-4b1c4311457b" /> ### Checklist - [x] [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 --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 9073b19)
…215056) (#215491) # Backport This will backport the following commits from `main` to `8.x`: - [[ES|QL] Restructure validation code, remove command settings (#215056)](#215056) <!--- 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-03-20T13:16:34Z","message":"[ES|QL] Restructure validation code, remove command settings (#215056)\n\n## Summary\n\nFollow on to several recent efforts including\nhttps://github.com//issues/195418 and\nhttps://github.com//pull/213325\n\nThis PR\n- reorganizes validation code to make dependencies clearer and make it\nless overwhelming... it's not perfect but it's better\n- removes the deprecated notion of a command \"setting\" which only ever\napplied to `ENRICH`.\n\nNo regression in `ENRICH` mode validation:\n<img width=\"874\" alt=\"Screenshot 2025-03-18 at 1 04 46 PM\"\nsrc=\"https://github.com/user-attachments/assets/e6639d8a-d129-440f-ac30-64a2ef6ab65c\"\n/>\n\nOr hover\n<img width=\"419\" alt=\"Screenshot 2025-03-18 at 7 43 04 PM\"\nsrc=\"https://github.com/user-attachments/assets/8f9c020c-dcfd-42dc-8e14-4b1c4311457b\"\n/>\n\n\n\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n---------\n\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"9073b194072cee0ef5290982c05cfdb84662c673","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["technical debt","release_note:skip","Feature:ES|QL","Team:ESQL","backport:version","v9.1.0","v8.19.0"],"title":"[ES|QL] Restructure validation code, remove command settings","number":215056,"url":"https://github.com/elastic/kibana/pull/215056","mergeCommit":{"message":"[ES|QL] Restructure validation code, remove command settings (#215056)\n\n## Summary\n\nFollow on to several recent efforts including\nhttps://github.com//issues/195418 and\nhttps://github.com//pull/213325\n\nThis PR\n- reorganizes validation code to make dependencies clearer and make it\nless overwhelming... it's not perfect but it's better\n- removes the deprecated notion of a command \"setting\" which only ever\napplied to `ENRICH`.\n\nNo regression in `ENRICH` mode validation:\n<img width=\"874\" alt=\"Screenshot 2025-03-18 at 1 04 46 PM\"\nsrc=\"https://github.com/user-attachments/assets/e6639d8a-d129-440f-ac30-64a2ef6ab65c\"\n/>\n\nOr hover\n<img width=\"419\" alt=\"Screenshot 2025-03-18 at 7 43 04 PM\"\nsrc=\"https://github.com/user-attachments/assets/8f9c020c-dcfd-42dc-8e14-4b1c4311457b\"\n/>\n\n\n\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n---------\n\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"9073b194072cee0ef5290982c05cfdb84662c673"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215056","number":215056,"mergeCommit":{"message":"[ES|QL] Restructure validation code, remove command settings (#215056)\n\n## Summary\n\nFollow on to several recent efforts including\nhttps://github.com//issues/195418 and\nhttps://github.com//pull/213325\n\nThis PR\n- reorganizes validation code to make dependencies clearer and make it\nless overwhelming... it's not perfect but it's better\n- removes the deprecated notion of a command \"setting\" which only ever\napplied to `ENRICH`.\n\nNo regression in `ENRICH` mode validation:\n<img width=\"874\" alt=\"Screenshot 2025-03-18 at 1 04 46 PM\"\nsrc=\"https://github.com/user-attachments/assets/e6639d8a-d129-440f-ac30-64a2ef6ab65c\"\n/>\n\nOr hover\n<img width=\"419\" alt=\"Screenshot 2025-03-18 at 7 43 04 PM\"\nsrc=\"https://github.com/user-attachments/assets/8f9c020c-dcfd-42dc-8e14-4b1c4311457b\"\n/>\n\n\n\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n\n---------\n\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"9073b194072cee0ef5290982c05cfdb84662c673"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Drew Tate <drew.tate@elastic.co>
…stic#213325) ## Summary Hides the actions and the view problem from the hover. (I didnt remove the code, we might want to enable it again in the future but we need to fix the bug I mention below) **Now** <img width="719" alt="image" src="https://github.com/user-attachments/assets/423cfbdd-e067-409c-8eb4-1e2c2cc17649" /> **Before** <img width="617" alt="image" src="https://github.com/user-attachments/assets/7ec5f48d-af8b-4676-84f4-9fa4a0d8f220" /> 1. Quick fixes has a lot of bugs such as: - elastic#180491 - It is not easy to select it  2. View problem doesn't appear correctly and it just repeats the error that exists already in the hover  3. Quick fixes are fixing now typos such as - index patterns - policies - field names - metadata options - quotes Our autocomplete is good enough to solve these so this is not so helpful. This PR hides the actions as they don't work correctly. We should reconsider displaying them again but for more sophisticated fixes such as: elastic#177554 (not for enrich but for joins) We should fix the bug first (quick fix is not clickable)
…#215056) ## Summary Follow on to several recent efforts including elastic#195418 and elastic#213325 This PR - reorganizes validation code to make dependencies clearer and make it less overwhelming... it's not perfect but it's better - removes the deprecated notion of a command "setting" which only ever applied to `ENRICH`. No regression in `ENRICH` mode validation: <img width="874" alt="Screenshot 2025-03-18 at 1 04 46 PM" src="https://github.com/user-attachments/assets/e6639d8a-d129-440f-ac30-64a2ef6ab65c" /> Or hover <img width="419" alt="Screenshot 2025-03-18 at 7 43 04 PM" src="https://github.com/user-attachments/assets/8f9c020c-dcfd-42dc-8e14-4b1c4311457b" /> ### Checklist - [x] [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 --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…#215056) ## Summary Follow on to several recent efforts including elastic#195418 and elastic#213325 This PR - reorganizes validation code to make dependencies clearer and make it less overwhelming... it's not perfect but it's better - removes the deprecated notion of a command "setting" which only ever applied to `ENRICH`. No regression in `ENRICH` mode validation: <img width="874" alt="Screenshot 2025-03-18 at 1 04 46 PM" src="https://github.com/user-attachments/assets/e6639d8a-d129-440f-ac30-64a2ef6ab65c" /> Or hover <img width="419" alt="Screenshot 2025-03-18 at 7 43 04 PM" src="https://github.com/user-attachments/assets/8f9c020c-dcfd-42dc-8e14-4b1c4311457b" /> ### Checklist - [x] [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 --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Summary
Hides the actions and the view problem from the hover. (I didnt remove the code, we might want to enable it again in the future but we need to fix the bug I mention below)
Now
Before
Our autocomplete is good enough to solve these so this is not so helpful.
This PR hides the actions as they don't work correctly. We should reconsider displaying them again but for more sophisticated fixes such as:
#177554 (not for enrich but for joins)
We should fix the bug first (quick fix is not clickable)