-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Description
Kibana version:
7.8 BC2
Describe the bug:
When editing and saving a dashboard from the Management UI, the saved object lose all its references to each embeddable, causing two main issues:
- the Dashboard no longer renders
- the saved object is now corrupted
Steps to reproduce:
- add the
Sample web logsample dataset - open the
[Logs] Web Trafficdashboard: it should render correctly - now open the
Stack Monitoring UI->Saved objectandInspectthe[Logs] Web Trafficsaved object. - note that the last field of the form,
referencesalways shows an empty array also if, inspecting the network or the real object saved into kibana, thereferencesarray has all the references to the used embeddable in the dashboard.
- now edit one color on the dashboard
panelJSONor simply click save - return to the Dashboard and see that you can no longer see the visualizations and an error appear
Expected behavior:
The Saved Object UI should show and save all the references correctly.
Errors in browser console (if relevant):
none
Provide logs and/or server output (if relevant):
no relevant logs
Any additional context:
I’ve investigated a bit more and I’ve found that this PR is probably the root cause: #61700
Seems that there is an issue when converting the saved object to the field list to be rendered on the saved object UI.
This can be located in src/plugins/saved_objects_management/public/lib/create_field_list.ts and consequentially in src/plugins/saved_objects_management/public/management_section/object_view/components/form.tsx
Seems that we are trying to get the references array from the attributes property of the SimpleSavedObject but they live on the root level of the same object.

