Relationship missing between dashboard and visualization

Hello,

I discovered something what seems to be a bug when creating a new dashboard from a visualization.

Steps to reproduce:

  • Start from a Saved Discovery Session and click on the "Edit Visualization" on the chart above the documents
  • Do whatever you need to add from filters to breakdown etc.
  • Save and choose "Add to dashboard - new" and Add to library

  • Also save the newly created dashboard

When you check the relationships in the saved objects for the dashboard, the one for the visualization is missing but there is a child relationship to the index pattern used in the original visualization.

You will not see any issues in the dashboard in the origin space afterwards, but when you copy the dashboard to other spaces, you encounter this issue

We are currently running version 9.3.3

I don't know if this is already solved in later versions.

Kind regards,

Peter

This looks like a bug. I'd test it on the latest supported version first, and if it still happens, report it with your reproduction steps—they're detailed enough to help the developers investigate.