-
Notifications
You must be signed in to change notification settings - Fork 84
Imported Dashboards and Visualizations with custom IDs cannot be exported on-demand. #281
Description
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:
- Export an existing dashboard via saved objects API or saved objects menu of the WebUI.
- Set unique but custom IDs in the ndjson file for every visualization, index pattern and dashboard.
- Import the changed saved objects file via saved objects API or saved objects menu of the WebUI.
- Open the dashboard in the WebUI and click on "Reporting".
- Verify that the custom ID is set (check the browser URI).
- Now you can see that alle reporting options are unavailable.
- Clone the imported dashboard via WebUI "Clone" button and save a copy as new dashboard.
- 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.
Host/Environment (please complete the following information):
Linux Ubuntu Server 20.04
Thank you in advance.
Best regards.
