Skip to content

Commit ecbfa72

Browse files
committed
fix: expose a "data links" option in panel builders
1 parent 3444dea commit ecbfa72

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

config/compiler/kind_registry.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ passes:
6969
kind: composable_slot
7070
composable_slot: { variant: dataquery }
7171

72+
# typed as `links?: [...]` in the original schema
73+
- retype_field:
74+
field: dashboard.FieldConfig.links
75+
as:
76+
kind: array
77+
array:
78+
value_type:
79+
kind: ref
80+
ref: { referred_pkg: dashboard, referred_type: DashboardLink }
81+
7282
- dashboard_panels: {}
7383

7484
# Add a few missing fields.

config/veneers/dashboard.common.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,14 @@ builders:
5353
under_path: fieldConfig.defaults
5454
exclude_options: [
5555
# don't copy these over as they clash with a similarly named options from Panel
56-
"description", "links",
56+
"description",
5757

5858
# TODO: check if these are actually relevant
5959
"displayNameFromDS", "filterable", "path", "writeable"
6060
]
6161
rename_options:
6262
color: colorScheme
63+
links: dataLinks
6364
- merge_into:
6465
source: FieldConfigSource
6566
destination: Panel

0 commit comments

Comments
 (0)