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

[Visualize] Remove saved search references from all places on unlink #135628

Merged
merged 3 commits into from Jul 5, 2022

Conversation

flash1293
Copy link
Contributor

Fixes #135627

When trying to unlink a saved search from a vis which was saved before, the reference to the saved search wasn't actually removed because the reference was still retained in two places: The reference to the savedSearch object itself in vis instance and the savedSearchId in the vis.data collection.

This PR makes sure all references are cleanly removed from all places.

@flash1293 flash1293 added release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure backport:skip This commit does not require backporting v8.4.0 labels Jul 4, 2022
@flash1293 flash1293 marked this pull request as ready for review July 4, 2022 12:37
@flash1293 flash1293 requested a review from a team as a code owner July 4, 2022 12:37
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, I tested it locally and the bug is fixed!

@flash1293 flash1293 enabled auto-merge (squash) July 5, 2022 07:11
@kibana-ci
Copy link
Collaborator

💚 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
visualizations 241.7KB 241.8KB +53.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@flash1293 flash1293 merged commit 3efab92 into elastic:main Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Visualize] Can't unlink saved search from already saved visualization
4 participants