Repository navigation
[maps] fix Map orphans sources on layer deletion - #159067
Merged
Merged
Conversation
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
Unknown metric groupsAPI count
ESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
nreese
marked this pull request as ready for review
June 6, 2023 13:52
Contributor
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
nickpeihl
self-requested a review
June 6, 2023 20:19
nickpeihl
approved these changes
Jun 6, 2023
nickpeihl
left a comment
Contributor
There was a problem hiding this comment.
lgtm!
code review and verified removal of orphans.
kibanamachine
added a commit
to kibanamachine/kibana
that referenced
this pull request
Jun 6, 2023
Fixes elastic#158133 Sources where not getting removed because `return` was used instead of `continue` in `for...in` loop. This caused the function to return instead of processing remaining sources. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit fcd1950)
Contributor
💚 All backports created successfully
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
Jun 6, 2023
…9160) # Backport This will backport the following commits from `main` to `8.8`: - [[maps] fix Map orphans sources on layer deletion (#159067)](#159067) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Nathan Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2023-06-06T20:34:40Z","message":"[maps] fix Map orphans sources on layer deletion (#159067)\n\nFixes https://github.com/elastic/kibana/issues/158133\r\n\r\nSources where not getting removed because `return` was used instead of\r\n`continue` in `for...in` loop. This caused the function to return\r\ninstead of processing remaining sources.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fcd195050f14f38c9427a9b9819baef442baf854","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","Feature:Maps","v8.9.0","v8.8.2"],"number":159067,"url":"https://github.com/elastic/kibana/pull/159067","mergeCommit":{"message":"[maps] fix Map orphans sources on layer deletion (#159067)\n\nFixes https://github.com/elastic/kibana/issues/158133\r\n\r\nSources where not getting removed because `return` was used instead of\r\n`continue` in `for...in` loop. This caused the function to return\r\ninstead of processing remaining sources.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fcd195050f14f38c9427a9b9819baef442baf854"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/159067","number":159067,"mergeCommit":{"message":"[maps] fix Map orphans sources on layer deletion (#159067)\n\nFixes https://github.com/elastic/kibana/issues/158133\r\n\r\nSources where not getting removed because `return` was used instead of\r\n`continue` in `for...in` loop. This caused the function to return\r\ninstead of processing remaining sources.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fcd195050f14f38c9427a9b9819baef442baf854"}},{"branch":"8.8","label":"v8.8.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
Contributor
|
This PR backport didn't make it into the latest BC for 8.8.1. Updating the labels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #158133
Sources where not getting removed because
returnwas used instead ofcontinueinfor...inloop. This caused the function to return instead of processing remaining sources.