Skip to content

Imported Dashboards and Visualizations with custom IDs cannot be exported on-demand. #281

@inf17101

Description

@inf17101

Describe the bug
If you import a saved objects file via API or Opensearch Dashboard WebUI and set a custom ID for visualizations and the dashboard itself, then the "Reporting" Submenu for on-demand exports is greyed out. So you can click onto "Reporting" on a dashboard view, but the export buttons inside the submenu are greyed out. A report definition can still be created and a report can be downloaded if it was created via reporting definitions, but on-demand report generation does not work like described before.

To Reproduce
Steps to reproduce the behavior:

  1. Export an existing dashboard via saved objects API or saved objects menu of the WebUI.
  2. Set unique but custom IDs in the ndjson file for every visualization, index pattern and dashboard.
  3. Import the changed saved objects file via saved objects API or saved objects menu of the WebUI.
  4. Open the dashboard in the WebUI and click on "Reporting".
  5. Verify that the custom ID is set (check the browser URI).
  6. Now you can see that alle reporting options are unavailable.
  7. Clone the imported dashboard via WebUI "Clone" button and save a copy as new dashboard.
  8. Now open the cloned dashboard in the WebUI: you can see that a new auto-genearted ID is set for the cloned dashboard and if you click on "reporting", now the buttons are not greyed out anymore and you can export it.

Expected behavior
I expect that on-demand export of dashboards and visualizations with custom unique IDs set is supported.
Needed for automation purposes.

Screenshots
image

Host/Environment (please complete the following information):
Linux Ubuntu Server 20.04

Thank you in advance.
Best regards.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions