-
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
[Visualization] Get rid of saved object loader and use savedObjectClient resolve #113121
Merged
VladLasitsa
merged 38 commits into
elastic:master
from
VladLasitsa:get_rid_of_saved_object_loader
Oct 11, 2021
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
277f7ae
First step: create saved_visualize_utils, starting use new get/save m…
VladLasitsa 2424506
Use new util methods in embeddable
VladLasitsa cd3c1a9
move findListItem in utils
VladLasitsa 1560e50
some clean up
VladLasitsa 7cd5973
clean up
VladLasitsa cda436d
Some fixes
VladLasitsa 6bbcf88
Merge remote-tracking branch 'upstream/master' into get_rid_of_saved_…
VladLasitsa ab285e1
Fix saved object tags
VladLasitsa 58f3c58
Some types fixes
VladLasitsa 7af8213
Fix unit tests
VladLasitsa af5fa95
Clean up code
VladLasitsa facd0ad
Add unit tests for new utils
VladLasitsa e01d539
Fix lint
VladLasitsa e916aaf
Fix tagging
VladLasitsa 196e3d0
Add unit tests
VladLasitsa c0c81e1
Some fixes
VladLasitsa 733e4db
Clean up code
VladLasitsa dd6d5e2
Fix lint
VladLasitsa c5d1dc1
Fix types
VladLasitsa 9197198
Merge branch 'master' into get_rid_of_saved_object_loader
kibanamachine 620dced
put new methods in start contract
VladLasitsa 0debc03
Fix imports
VladLasitsa 5eb0c8a
Merge branch 'master' into get_rid_of_saved_object_loader
kibanamachine b87b393
Merge branch 'master' into get_rid_of_saved_object_loader
kibanamachine 6993014
Merge branch 'master' into get_rid_of_saved_object_loader
kibanamachine 2c89e2e
Fix lint
VladLasitsa 66d31f5
Fix comments
VladLasitsa ef1c959
Fix lint
VladLasitsa 321849d
Merge remote-tracking branch 'upstream/master' into get_rid_of_saved_…
VladLasitsa 3a28397
Fix CI
VladLasitsa 5715b47
use local url instead of full path
VladLasitsa c9707bd
Fix unit test
VladLasitsa 0522ded
Merge branch 'master' into get_rid_of_saved_object_loader
kibanamachine bfd5947
Some clean up
VladLasitsa ff5463b
Merge branch 'master' into get_rid_of_saved_object_loader
kibanamachine 91b0e71
Fix nits
VladLasitsa 2679dca
fix types
VladLasitsa ca40c99
Merge branch 'master' into get_rid_of_saved_object_loader
kibanamachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
As @flash1293 mentioned in #113121 (comment), the Spaces plugin now provides a component for this. Whether you want to change it in this PR or leave it for a follow-on PR, I just wanted to leave a note and let you know that I made some additional changes to it in #114172.
You can load this component with
spaces.ui.components.getEmbeddableLegacyUrlConflict
; you can see how Lens consumes it here:kibana/x-pack/plugins/lens/public/embeddable/embeddable.tsx
Lines 283 to 296 in 961fe75
The
sourceId
is the ID of the saved object.