-
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
[Lens] use data plugin migrations for search sources in legacy visualizations #123005
[Lens] use data plugin migrations for search sources in legacy visualizations #123005
Conversation
[suggestion] statically import filter inject/extract
…ts' of github.com:andrewctate/kibana into 114482/correctly-apply-filter-migrations-in-saved-objects
…-plugin-migrations-for-search-sources-in-legacy-visualizations
@elasticmachine merge upstream |
…-sources-in-legacy-visualizations
…-plugin-migrations-for-search-sources-in-legacy-visualizations
…-legacy-visualizations' of github.com:andrewctate/kibana into 114483/use-data-plugin-migrations-for-search-sources-in-legacy-visualizations
@elasticmachine merge upstream |
…-sources-in-legacy-visualizations
…-legacy-visualizations' of github.com:andrewctate/kibana into 114483/use-data-plugin-migrations-for-search-sources-in-legacy-visualizations
…-plugin-migrations-for-search-sources-in-legacy-visualizations
@elasticmachine merge upstream |
…-sources-in-legacy-visualizations
@elasticmachine merge upstream |
…-sources-in-legacy-visualizations
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 by adding example migrations to by value and by reference lens and visualization SOs as well as search source and filters - everything gets reflected as expected in all places, LGTM
…-plugin-migrations-for-search-sources-in-legacy-visualizations
…-legacy-visualizations' of github.com:andrewctate/kibana into 114483/use-data-plugin-migrations-for-search-sources-in-legacy-visualizations
💚 Build SucceededMetrics [docs]Public APIs missing comments
Any counts in public APIs
Page load bundle
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: |
@ppisljar looks like you're the last code-owner reviewer. Do you feel comfortable signing off on this PR? |
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.
code LGTM
Summary
This PR applies (not-yet-existent) search source migrations defined in the
data
plugin to the embedded search source objects in legacy visualizations.How to Test
Saved Object Migrations
Search Sources in Legacy Visualizations
Dashboard with Visualization with Search Source
visState.data.searchSource === true
in the visualization serialized inattributes.panelsJSON
Gauge with Search Source
JSON.parse(SO.attributes.kibanaSavedObjectMeta.searchSourceJSON).migrated === true
Filters in Lens
(make sure the functionality introduced in #120305 has not regressed)
Dashboard with Embedded Lens Visualizations with Filters
standalone table with filters
standalone bar chart with filter
indexRefName
property. Instead, it should have anindex
property.migrated: true
property.Checklist