-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Maps] fix save to maps for by_value map embeddables #102968
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this in 7.13.2 and did see the issue. Tested it again with this fix, and the map is added to the library / the maps app.
This addresses the last point in #99560, which is the most major discrepancy. Thanks for tackling this!
I wonder if we should add an additional functional test to https://github.com/elastic/kibana/blob/master/x-pack/test/functional/apps/dashboard/dashboard_maps_by_value.ts to ensure that this sort of thing doesn't happen again.
Thanks for pointing out #99560. I had forgettn about this issue but ya, this explains all of what is going on. I have pushed a change to address the point "When clicking save to library or save to maps when editing a panel by value, Visualize and Lens, show the save as dialog with the option to update Panel on dashboard. In Maps, the option reads Add to dashboard after saving". Now the dialog will also say "update Panel on dashboard" in maps. All of #99560 should be addressed now. I will update the PR description to state that this PR fixes #99560 |
That's awesome! Thanks again! |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! Thanks for fixing this 🙇
- code review
- tested locally in chrome
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* [Maps] fix save to maps for by_value map embeddables * show the save as dialog with the option to update Panel on dashboard Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
* [Maps] fix save to maps for by_value map embeddables * show the save as dialog with the option to update Panel on dashboard Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
Fixes #99560
To view problem
This PR resolves the problem by properly passing
addToLibrary
flag to savedMap.save