diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index c6ae16d828a6d..183e72d23cb71 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -161,7 +161,7 @@ Content is fetched from the remote (https://feeds.elastic.co and https://feeds-s |{kib-repo}blob/{branch}/src/plugins/saved_objects/README.md[savedObjects] -|The savedObjects plugin exposes utilities to manipulate saved objects on the client side. +|NOTE: This plugin is deprecated and will be removed in 8.0. See https://github.com/elastic/kibana/issues/46435 for more information. |{kib-repo}blob/{branch}/src/plugins/saved_objects_management/README.md[savedObjectsManagement] diff --git a/src/plugins/saved_objects/README.md b/src/plugins/saved_objects/README.md index 2f8dd44a2c5fa..b82349e092c90 100644 --- a/src/plugins/saved_objects/README.md +++ b/src/plugins/saved_objects/README.md @@ -1,3 +1,5 @@ # `savedObjects` plugin +NOTE: This plugin is deprecated and will be removed in 8.0. See https://github.com/elastic/kibana/issues/46435 for more information. + The `savedObjects` plugin exposes utilities to manipulate saved objects on the client side. \ No newline at end of file diff --git a/src/plugins/saved_objects/public/plugin.ts b/src/plugins/saved_objects/public/plugin.ts index 2807c5de35fb4..c8e62efc1a867 100644 --- a/src/plugins/saved_objects/public/plugin.ts +++ b/src/plugins/saved_objects/public/plugin.ts @@ -23,9 +23,13 @@ export interface SavedObjectSetup { } export interface SavedObjectsStart { + /** @deprecated */ SavedObjectClass: new (raw: Record) => SavedObject; + /** @deprecated */ settings: { + /** @deprecated */ getPerPage: () => number; + /** @deprecated */ getListingLimit: () => number; }; } diff --git a/src/plugins/saved_objects/public/save_modal/saved_object_save_modal.tsx b/src/plugins/saved_objects/public/save_modal/saved_object_save_modal.tsx index e476d62a0e793..07f6336dac52c 100644 --- a/src/plugins/saved_objects/public/save_modal/saved_object_save_modal.tsx +++ b/src/plugins/saved_objects/public/save_modal/saved_object_save_modal.tsx @@ -66,6 +66,7 @@ export interface SaveModalState { const generateId = htmlIdGenerator(); +/** @deprecated */ export class SavedObjectSaveModal extends React.Component { private warning = React.createRef(); public readonly state = { diff --git a/src/plugins/saved_objects/public/saved_object/saved_object_loader.ts b/src/plugins/saved_objects/public/saved_object/saved_object_loader.ts index f1de1933ac43b..10872b5d9cd1a 100644 --- a/src/plugins/saved_objects/public/saved_object/saved_object_loader.ts +++ b/src/plugins/saved_objects/public/saved_object/saved_object_loader.ts @@ -22,6 +22,7 @@ export interface SavedObjectLoaderFindOptions { } /** + * @deprecated * The SavedObjectLoader class provides some convenience functions * to load and save one kind of saved objects (specified in the constructor). * diff --git a/src/plugins/saved_objects/public/types.ts b/src/plugins/saved_objects/public/types.ts index b0bc459cd299b..ca44c56319954 100644 --- a/src/plugins/saved_objects/public/types.ts +++ b/src/plugins/saved_objects/public/types.ts @@ -21,6 +21,7 @@ import { SearchSourceFields, } from '../../data/public'; +/** @deprecated */ export interface SavedObject { _serialize: () => { attributes: SavedObjectAttributes; references: SavedObjectReference[] }; _source: Record;