Skip to content

Commit

Permalink
savedObjects plugin is deprecated and will be removed (#94289) (#94435)
Browse files Browse the repository at this point in the history
* savedObjects plugin is deprecated and will be removed

* Update plugin list docs

Co-authored-by: Rudolf Meijering <[email protected]>
  • Loading branch information
kibanamachine and rudolf authored Mar 11, 2021
1 parent b97936d commit 79fe674
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/developer/plugin-list.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/saved_objects/README.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 4 additions & 0 deletions src/plugins/saved_objects/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ export interface SavedObjectSetup {
}

export interface SavedObjectsStart {
/** @deprecated */
SavedObjectClass: new (raw: Record<string, any>) => SavedObject;
/** @deprecated */
settings: {
/** @deprecated */
getPerPage: () => number;
/** @deprecated */
getListingLimit: () => number;
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export interface SaveModalState {

const generateId = htmlIdGenerator();

/** @deprecated */
export class SavedObjectSaveModal extends React.Component<Props, SaveModalState> {
private warning = React.createRef<HTMLDivElement>();
public readonly state = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*
Expand Down
1 change: 1 addition & 0 deletions src/plugins/saved_objects/public/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
SearchSourceFields,
} from '../../data/public';

/** @deprecated */
export interface SavedObject {
_serialize: () => { attributes: SavedObjectAttributes; references: SavedObjectReference[] };
_source: Record<string, unknown>;
Expand Down

0 comments on commit 79fe674

Please sign in to comment.