Add deprecation notice to dashboard import/export docs. (#108826)

This commit is contained in:
Luke Elmers 2021-08-18 14:46:17 -06:00 committed by GitHub
parent 8c8dca6ad2
commit 49ba7e746c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 4 deletions

View file

@ -1,6 +1,8 @@
[[dashboard-api]]
== Import and export dashboard APIs
deprecated::[7.15.0,Both of these APIs have been deprecated in favor of <<saved-objects-api-import>> and <<saved-objects-api-export>>.]
Import and export dashboards with the corresponding saved objects, such as visualizations, saved
searches, and index patterns.

View file

@ -4,7 +4,9 @@
<titleabbrev>Export dashboard</titleabbrev>
++++
experimental[] Export dashboards and corresponding saved objects.
deprecated::[7.15.0,Use <<saved-objects-api-export>> instead.]
Export dashboards and corresponding saved objects.
[[dashboard-api-export-request]]
==== Request

View file

@ -4,7 +4,9 @@
<titleabbrev>Import dashboard</titleabbrev>
++++
experimental[] Import dashboards and corresponding saved objects.
deprecated::[7.15.0,Use <<saved-objects-api-import>> instead.]
Import dashboards and corresponding saved objects.
[[dashboard-api-import-request]]
==== Request

View file

@ -345,7 +345,7 @@ To share the dashboard with a larger audience, click *Share* in the toolbar. For
[[import-dashboards]]
== Export dashboards
To automate {kib}, you can export dashboards as JSON using the <<dashboard-api,import and export dashboard APIs>>. It is important to export dashboards with all necessary references.
To automate {kib}, you can export dashboards as NDJSON using the <<saved-objects-api-export, Export objects API>>. It is important to export dashboards with all necessary references.
--
include::tutorial-create-a-dashboard-of-lens-panels.asciidoc[]

View file

@ -1,3 +1,3 @@
# `legacyExport` plugin
# `legacyExport` plugin [deprecated]
The `legacyExport` plugin adds support for the legacy saved objects export format.

View file

@ -9,6 +9,7 @@
import { Plugin, CoreSetup, PluginInitializerContext } from 'kibana/server';
import { registerRoutes } from './routes';
/** @deprecated */
export class LegacyExportPlugin implements Plugin<{}, {}> {
constructor(private readonly initContext: PluginInitializerContext) {}