-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dashboard drilldowns are not using saved object references #71409
Comments
Pinging @elastic/kibana-app-arch (Team:AppArch) |
Thanks for the ping @timroes. I think this is blocking phase 3 of sharing saved objects, since drilldowns are always(?) referencing dashboards, and not say, index patterns. Phase 2 (our next phase) is concerned with sharing saved objects which themselves don't have references (such as index patterns). So, this is something we absolutely need fixed, but it's not as high of a priority as #59960, which is blocking Phase 2 of our work. cc @jportner |
To fix this we will need the We should also discuss if we/how we want to store the references for drilldown saved objects; as storing the references would mean that when object is copied to another space all other saved objects it references are also copied to that space, AFAIK. Meaning if a dashboard has drilldowns to few other dashboard and we store references for those, those other dashboards will also get copied to the new space together with the source dashboard. |
this is blocked by #67931 |
also blocked by #71431 |
Started working on this on top of #71431. Q: Are cyclic references allowed? Seems like no? What would be a recommended approach for handling such references? |
@Dosant Could you elaborate how do you model data storage? Does reference chain look like |
@restrry, |
@Dosant from dashboards perspective, its just extracting references, where one of them might point to another dashboard. it doesn't care if that other dashboard points back to it. But you are right we'll need to make sure any logic using this references is good enough so it doesn't break under cyclic reference. But from user experience perspective i don't see an issue. if i have Dashboard A->Dashboard B->Dashboard A ... when i copy dashboard A to new space dashboard B will be copied with it. And if i copy dashboard B, dashboard A will be copied with it. all good. |
An update on this:
|
When currently storing a dashboard drilldown on a panel, the config inside the
panels
object in the dashboard saved object will look like:The drilldown contains a
dashboardId
directly instead of using the saved object reference system for it and properly stored the link to the saved object in thereference
part of the saved object. This means those drilldowns will all break when the saved objects would change their ids (currently planned for the sharing between spaces feature).We need to change this behavior and migrate all existing drilldown saved objects to use references correctly.
cc @ppisljar @alexh97 and @legrego (sorry this seems to be another (new) blocker).
Part of #42845
@Dosant:
[2020-10-19] An update on this:
The text was updated successfully, but these errors were encountered: