-
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] Fixes the multiple comments bug #203966
Conversation
Pinging @elastic/kibana-esql (Team:ESQL) |
💚 Build Succeeded
Metrics [docs]Async chunks
|
Starting backport for target branches: 8.17, 8.x https://github.com/elastic/kibana/actions/runs/12295156352 |
## Summary ![meow](https://github.com/user-attachments/assets/aea64a3c-97de-417a-bd67-5434e70cf22a) Sometimes commenting multiple lines doesnt work as expected. This PR fixes it. The problem was that we were (un)commenting line by line and this apparently can be buggy. With this PR we gather the edits and apply all of them in one `executeEdits ` (cherry picked from commit 9edadfd)
## Summary ![meow](https://github.com/user-attachments/assets/aea64a3c-97de-417a-bd67-5434e70cf22a) Sometimes commenting multiple lines doesnt work as expected. This PR fixes it. The problem was that we were (un)commenting line by line and this apparently can be buggy. With this PR we gather the edits and apply all of them in one `executeEdits ` (cherry picked from commit 9edadfd)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[ES|QL] Fixes the multiple comments bug (#203966)](#203966) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Stratoula Kalafateli","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-12T11:08:29Z","message":"[ES|QL] Fixes the multiple comments bug (#203966)\n\n## Summary\r\n\r\n\r\n![meow](https://github.com/user-attachments/assets/aea64a3c-97de-417a-bd67-5434e70cf22a)\r\n\r\nSometimes commenting multiple lines doesnt work as expected.\r\n\r\nThis PR fixes it. The problem was that we were (un)commenting line by\r\nline and this apparently can be buggy. With this PR we gather the edits\r\nand apply all of them in one `executeEdits `","sha":"9edadfdc4637b2fccc925677f9977fde62849608","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Feature:ES|QL","Team:ESQL","backport:version","v8.17.0","v8.18.0"],"title":"[ES|QL] Fixes the multiple comments bug","number":203966,"url":"https://github.com/elastic/kibana/pull/203966","mergeCommit":{"message":"[ES|QL] Fixes the multiple comments bug (#203966)\n\n## Summary\r\n\r\n\r\n![meow](https://github.com/user-attachments/assets/aea64a3c-97de-417a-bd67-5434e70cf22a)\r\n\r\nSometimes commenting multiple lines doesnt work as expected.\r\n\r\nThis PR fixes it. The problem was that we were (un)commenting line by\r\nline and this apparently can be buggy. With this PR we gather the edits\r\nand apply all of them in one `executeEdits `","sha":"9edadfdc4637b2fccc925677f9977fde62849608"}},"sourceBranch":"main","suggestedTargetBranches":["8.17","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203966","number":203966,"mergeCommit":{"message":"[ES|QL] Fixes the multiple comments bug (#203966)\n\n## Summary\r\n\r\n\r\n![meow](https://github.com/user-attachments/assets/aea64a3c-97de-417a-bd67-5434e70cf22a)\r\n\r\nSometimes commenting multiple lines doesnt work as expected.\r\n\r\nThis PR fixes it. The problem was that we were (un)commenting line by\r\nline and this apparently can be buggy. With this PR we gather the edits\r\nand apply all of them in one `executeEdits `","sha":"9edadfdc4637b2fccc925677f9977fde62849608"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Stratoula Kalafateli <[email protected]>
# Backport This will backport the following commits from `main` to `8.17`: - [[ES|QL] Fixes the multiple comments bug (#203966)](#203966) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Stratoula Kalafateli","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-12T11:08:29Z","message":"[ES|QL] Fixes the multiple comments bug (#203966)\n\n## Summary\r\n\r\n\r\n![meow](https://github.com/user-attachments/assets/aea64a3c-97de-417a-bd67-5434e70cf22a)\r\n\r\nSometimes commenting multiple lines doesnt work as expected.\r\n\r\nThis PR fixes it. The problem was that we were (un)commenting line by\r\nline and this apparently can be buggy. With this PR we gather the edits\r\nand apply all of them in one `executeEdits `","sha":"9edadfdc4637b2fccc925677f9977fde62849608","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Feature:ES|QL","Team:ESQL","backport:version","v8.17.0","v8.18.0"],"title":"[ES|QL] Fixes the multiple comments bug","number":203966,"url":"https://github.com/elastic/kibana/pull/203966","mergeCommit":{"message":"[ES|QL] Fixes the multiple comments bug (#203966)\n\n## Summary\r\n\r\n\r\n![meow](https://github.com/user-attachments/assets/aea64a3c-97de-417a-bd67-5434e70cf22a)\r\n\r\nSometimes commenting multiple lines doesnt work as expected.\r\n\r\nThis PR fixes it. The problem was that we were (un)commenting line by\r\nline and this apparently can be buggy. With this PR we gather the edits\r\nand apply all of them in one `executeEdits `","sha":"9edadfdc4637b2fccc925677f9977fde62849608"}},"sourceBranch":"main","suggestedTargetBranches":["8.17","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203966","number":203966,"mergeCommit":{"message":"[ES|QL] Fixes the multiple comments bug (#203966)\n\n## Summary\r\n\r\n\r\n![meow](https://github.com/user-attachments/assets/aea64a3c-97de-417a-bd67-5434e70cf22a)\r\n\r\nSometimes commenting multiple lines doesnt work as expected.\r\n\r\nThis PR fixes it. The problem was that we were (un)commenting line by\r\nline and this apparently can be buggy. With this PR we gather the edits\r\nand apply all of them in one `executeEdits `","sha":"9edadfdc4637b2fccc925677f9977fde62849608"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Stratoula Kalafateli <[email protected]>
This PR didn't make it on time for the latest v8.17.0 BC. Updating the labels. |
Summary
Sometimes commenting multiple lines doesnt work as expected.
This PR fixes it. The problem was that we were (un)commenting line by line and this apparently can be buggy. With this PR we gather the edits and apply all of them in one
executeEdits