Skip to content

Dashboard drilldowns are not using saved object references #71409

@timroes

Description

@timroes

When currently storing a dashboard drilldown on a panel, the config inside the panels object in the dashboard saved object will look like:

dynamicActions": {
  "events": [
    {
      "eventId": "c2363b35-045c-4d25-979e-cb9703f002db",
      "triggers": [
        "VALUE_CLICK_TRIGGER",
        "SELECT_RANGE_TRIGGER"
      ],
      "action": {
        "name": "iuyhgft",
        "config": {
          "dashboardId": "edf84fe0-e1a0-11e7-b6d5-4dc382ef7f5b",
          "useCurrentFilters": true,
          "useCurrentDateRange": true
        },
        "factoryId": "DASHBOARD_TO_DASHBOARD_DRILLDOWN"
      }
    }
  ]
}

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 the reference 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:

Metadata

Metadata

Assignees

Labels

Feature:DrilldownsEmbeddable panel Drilldownstechnical debtImprovement of the software architecture and operational architecture

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions