From ba56a4dc129c309d3a6491e6cfa5f965deb1d2e4 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Fri, 19 Aug 2022 17:25:00 +0200 Subject: [PATCH] [v9.1.x] Grafana/schema: Fix plugins API regression. Add back "hidden" in LegendDisplayMode (#53966) Co-authored-by: Esteban Beltran --- packages/grafana-schema/src/schema/mudball.cue | 3 ++- packages/grafana-schema/src/schema/mudball.gen.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/grafana-schema/src/schema/mudball.cue b/packages/grafana-schema/src/schema/mudball.cue index e101d9ea65c..054e8e8a44b 100644 --- a/packages/grafana-schema/src/schema/mudball.cue +++ b/packages/grafana-schema/src/schema/mudball.cue @@ -133,7 +133,8 @@ GraphThresholdsStyleConfig: { LegendPlacement: "bottom" | "right" @cuetsy(kind="type") // TODO docs -LegendDisplayMode: "list" | "table" @cuetsy(kind="enum") +// Note: "hidden" needs to remain as an option for plugins compatibility +LegendDisplayMode: "list" | "table" | "hidden" @cuetsy(kind="enum") // TODO docs TableSortByFieldState: { diff --git a/packages/grafana-schema/src/schema/mudball.gen.ts b/packages/grafana-schema/src/schema/mudball.gen.ts index 078650f0b56..42d93744643 100644 --- a/packages/grafana-schema/src/schema/mudball.gen.ts +++ b/packages/grafana-schema/src/schema/mudball.gen.ts @@ -168,6 +168,7 @@ export interface GraphThresholdsStyleConfig { export type LegendPlacement = ('bottom' | 'right'); export enum LegendDisplayMode { + Hidden = 'hidden', List = 'list', Table = 'table', }