From cd35dd6f0349f8b457d6966f41eeca5e2587d6d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Gomez?= Date: Fri, 27 Sep 2024 13:43:04 +0200 Subject: [PATCH] Set the `piechart.Options.displayLabels` field as optional If set to null, this field breaks the Grafana UI. Setting it as optional allows us to omit it in the JSON representation when null. --- config/compiler/kind_registry.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/compiler/kind_registry.yaml b/config/compiler/kind_registry.yaml index e1120df9..020d6648 100644 --- a/config/compiler/kind_registry.yaml +++ b/config/compiler/kind_registry.yaml @@ -111,6 +111,13 @@ passes: - fields_set_not_required: fields: [ common.TableFieldOptions.CellOptions ] + ################## + # piechart panel # + ################## + + - fields_set_not_required: + fields: [ piechart.Options.displayLabels ] + ##################### # candlestick panel # #####################