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] Fixes the multiple comments bug #203966

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented Dec 12, 2024

Summary

meow

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

@stratoula stratoula added v9.0.0 v8.17.0 v8.18.0 release_note:fix Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana backport:version Backport to applied version labels labels Dec 12, 2024
@stratoula stratoula marked this pull request as ready for review December 12, 2024 08:31
@stratoula stratoula requested a review from a team as a code owner December 12, 2024 08:31
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
esql 202.5KB 202.5KB +18.0B

@stratoula stratoula merged commit 9edadfd into elastic:main Dec 12, 2024
22 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.17, 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 12, 2024
## 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)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 12, 2024
## 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)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.17
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 Dec 12, 2024
# 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]>
kibanamachine added a commit that referenced this pull request Dec 12, 2024
# 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]>
@mistic
Copy link
Member

mistic commented Dec 12, 2024

This PR didn't make it on time for the latest v8.17.0 BC. Updating the labels.

@mistic mistic added v8.17.1 and removed v8.17.0 labels Dec 12, 2024
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:fix Team:ESQL ES|QL related features in Kibana v8.17.1 v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants