From 6f940f855eff812264a0265135a8bb03dc383cfd Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Thu, 21 Aug 2025 13:58:36 +0300 Subject: [PATCH] Chore: Remove public dashboard cue (#109940) --- .github/CODEOWNERS | 1 - .../publicdashboard/public_dashboard_kind.cue | 25 ------------- packages/grafana-schema/src/index.gen.ts | 3 -- .../x/publicdashboard_types.gen.ts | 36 ------------------- pkg/registry/schemas/core_kind.go | 9 ----- 5 files changed, 74 deletions(-) delete mode 100644 kinds/publicdashboard/public_dashboard_kind.cue delete mode 100644 packages/grafana-schema/src/raw/publicdashboard/x/publicdashboard_types.gen.ts diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 896e0b1fa1f..2dac93d87e7 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -677,7 +677,6 @@ /packages/grafana-schema/src/**/nodegraph @grafana/observability-traces-and-profiling @grafana/app-o11y-visualizations /packages/grafana-schema/src/**/parca @grafana/oss-big-tent /packages/grafana-schema/src/**/piechart @grafana/dataviz-squad -/packages/grafana-schema/src/**/publicdashboard @grafana/grafana-operator-experience-squad /packages/grafana-schema/src/**/stat @grafana/dataviz-squad /packages/grafana-schema/src/**/statetimeline @grafana/dataviz-squad /packages/grafana-schema/src/**/statushistory @grafana/dataviz-squad diff --git a/kinds/publicdashboard/public_dashboard_kind.cue b/kinds/publicdashboard/public_dashboard_kind.cue deleted file mode 100644 index f3a569fa334..00000000000 --- a/kinds/publicdashboard/public_dashboard_kind.cue +++ /dev/null @@ -1,25 +0,0 @@ -package kind - -name: "PublicDashboard" -maturity: "merged" -description: "Public dashboard configuration" - -lineage: schemas: [{ - version: [0, 0] - schema: { - spec: { - // Unique public dashboard identifier - uid: string - // Dashboard unique identifier referenced by this public dashboard - dashboardUid: string - // Unique public access token - accessToken?: string - // Flag that indicates if the public dashboard is enabled - isEnabled: bool - // Flag that indicates if annotations are enabled - annotationsEnabled: bool - // Flag that indicates if the time range picker is enabled - timeSelectionEnabled: bool - } @cuetsy(kind="interface") - } -}] diff --git a/packages/grafana-schema/src/index.gen.ts b/packages/grafana-schema/src/index.gen.ts index 2420ea9c95d..4a7a575e83b 100644 --- a/packages/grafana-schema/src/index.gen.ts +++ b/packages/grafana-schema/src/index.gen.ts @@ -110,6 +110,3 @@ export type { // // TODO generate code such that tsc enforces type compatibility between raw and veneer decls export type { LibraryPanel } from './veneer/librarypanel.types'; - -// Raw generated types from PublicDashboard kind. -export type { PublicDashboard } from './raw/publicdashboard/x/publicdashboard_types.gen'; diff --git a/packages/grafana-schema/src/raw/publicdashboard/x/publicdashboard_types.gen.ts b/packages/grafana-schema/src/raw/publicdashboard/x/publicdashboard_types.gen.ts deleted file mode 100644 index b94e4baefe3..00000000000 --- a/packages/grafana-schema/src/raw/publicdashboard/x/publicdashboard_types.gen.ts +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated - EDITING IS FUTILE. DO NOT EDIT. -// -// Generated by: -// kinds/gen.go -// Using jennies: -// TSTypesJenny -// LatestMajorsOrXJenny -// -// Run 'make gen-cue' from repository root to regenerate. - -export interface PublicDashboard { - /** - * Unique public access token - */ - accessToken?: string; - /** - * Flag that indicates if annotations are enabled - */ - annotationsEnabled: boolean; - /** - * Dashboard unique identifier referenced by this public dashboard - */ - dashboardUid: string; - /** - * Flag that indicates if the public dashboard is enabled - */ - isEnabled: boolean; - /** - * Flag that indicates if the time range picker is enabled - */ - timeSelectionEnabled: boolean; - /** - * Unique public dashboard identifier - */ - uid: string; -} diff --git a/pkg/registry/schemas/core_kind.go b/pkg/registry/schemas/core_kind.go index 9e59b1eb9a2..c60b38d6161 100644 --- a/pkg/registry/schemas/core_kind.go +++ b/pkg/registry/schemas/core_kind.go @@ -48,15 +48,6 @@ func GetCoreKinds() ([]CoreKind, error) { CueFile: librarypanelCue, }) - publicdashboardCue, err := loadCueFile(ctx, filepath.Join(root, "./kinds/publicdashboard/public_dashboard_kind.cue")) - if err != nil { - return nil, err - } - kinds = append(kinds, CoreKind{ - Name: "publicdashboard", - CueFile: publicdashboardCue, - }) - return kinds, nil }