Dash-SchemaV2: Don't persist undefined fields (#98493)

Don't persist undefined values
This commit is contained in:
Haris Rozajac
2025-01-07 10:54:56 -07:00
committed by GitHub
parent 79c61bcc3c
commit 8b72e2188a
4 changed files with 11 additions and 11 deletions
@@ -37,7 +37,7 @@ export const handyTestingSchema: DashboardV2Spec = {
type: 'prometheus',
uid: 'uid',
},
filter: { ids: [] },
filter: { ids: [1] },
enable: true,
hide: false,
iconColor: 'rgba(0, 211, 255, 1)',
@@ -63,7 +63,6 @@ export const handyTestingSchema: DashboardV2Spec = {
scenarioId: 'annotations',
},
},
filter: { ids: [] },
hide: true,
},
},
@@ -75,7 +74,6 @@ export const handyTestingSchema: DashboardV2Spec = {
type: 'grafana-testdata-datasource',
uid: 'uid',
},
filter: { ids: [] },
enable: false,
iconColor: 'yellow',
name: 'Disabled',
@@ -94,7 +92,6 @@ export const handyTestingSchema: DashboardV2Spec = {
type: 'grafana-testdata-datasource',
uid: 'uid',
},
filter: { ids: [] },
enable: true,
hide: true,
iconColor: 'dark-purple',
@@ -282,7 +279,6 @@ export const handyTestingSchema: DashboardV2Spec = {
{
kind: 'DatasourceVariable',
spec: {
allValue: undefined,
current: {
text: 'text1',
value: 'value1',