Clean up saved object class and saved object loader #58243
Labels
blocked
Feature:NP Migration
Feature:Saved Objects
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Blocked on #67607
Currently
src/plugins/saved_objects
contains a class wrapping the core saved object client with additional functionality as well as a saved object loader serving similar purposes.To make it easier to manage, these functions should be split up in several helpers which are composed by the consuming plugins. To make transition seamless, the current class based approach should be provided along with a set of utilities for the same functionality for a while.
Splitting out the target utilities also includes providing proper types for them as well as covering them sufficiently with unit tests.
Target utilities:
All other utilities should be removed in favor of plugin-local handlers.
An example plugin containing a set of the most common use cases and best practice solutions to them should be part of the
saved_objects
plugin (similar tokibana_utils
examples)Discover, Dashboard, Visualize and Maps are registered with the saved objects management which makes it impossible at the moment to get rid of the saved object loader completely. To make it possible to do this incrementally, a shim layer has to be introduced so management can continue to function even if the registered saved objects are not using the wrapper class.
Subtasks
The text was updated successfully, but these errors were encountered: