Skip to content

Commit

Permalink
Add deprecation notice to dashboard import/export docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeelmers committed Aug 17, 2021
1 parent 85e0766 commit 90c398e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/api/dashboard-api.asciidoc
Original file line number Diff line number Diff line change
@@ -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, Import objects API>> and <<saved-objects-api-export, Export objects API>>.]

Import and export dashboards with the corresponding saved objects, such as visualizations, saved
searches, and index patterns.

Expand Down
4 changes: 3 additions & 1 deletion docs/api/dashboard/export-dashboard.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<titleabbrev>Export dashboard</titleabbrev>
++++

experimental[] Export dashboards and corresponding saved objects.
deprecated::[7.15.0,Use <<saved-objects-api-export, Export objects API>> instead.]

Export dashboards and corresponding saved objects.

[[dashboard-api-export-request]]
==== Request
Expand Down
4 changes: 3 additions & 1 deletion docs/api/dashboard/import-dashboard.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<titleabbrev>Import dashboard</titleabbrev>
++++

experimental[] Import dashboards and corresponding saved objects.
deprecated::[7.15.0,Use <<saved-objects-api-import, Import objects API>> instead.]

Import dashboards and corresponding saved objects.

[[dashboard-api-import-request]]
==== Request
Expand Down
2 changes: 1 addition & 1 deletion docs/user/dashboard/dashboard.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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-import, Import objects API>> and <<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[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import { SavedObjectsClientContract } from 'src/core/server';
import { collectReferencesDeep } from './collect_references_deep';

/** @deprecated */
export async function exportDashboards(
ids: string[],
savedObjectsClient: SavedObjectsClientContract,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import { SavedObject, SavedObjectsClientContract } from 'src/core/server';

/** @deprecated */
export async function importDashboards(
savedObjectsClient: SavedObjectsClientContract,
objects: SavedObject[],
Expand Down

0 comments on commit 90c398e

Please sign in to comment.