From acf6f1ae5f78f6065d1ab240e2b78ba02cb05131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C5=A0tibran=C3=BD?= Date: Wed, 19 Nov 2025 15:42:14 +0100 Subject: [PATCH] Ignore boolean ".spec.refresh" silently. (#114167) --- pkg/services/store/kind/dashboard/dashboard.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/services/store/kind/dashboard/dashboard.go b/pkg/services/store/kind/dashboard/dashboard.go index 42a2e1e5067..656eefc15f3 100644 --- a/pkg/services/store/kind/dashboard/dashboard.go +++ b/pkg/services/store/kind/dashboard/dashboard.go @@ -204,7 +204,13 @@ func readDashboardIter(jsonPath string, iter *jsoniter.Iterator, lookup Datasour } case "refresh": - if !checkAndSkipUnexpectedElement(iter, jsonPath+".refresh", lc, jsoniter.StringValue) { + // "refresh" used to be boolean. We will silently skip it in such case. + if !checkAndSkipUnexpectedElement(iter, jsonPath+".refresh", lc, jsoniter.StringValue, jsoniter.BoolValue) { + continue + } + + if iter.WhatIsNext() == jsoniter.BoolValue { + iter.Skip() continue } dash.Refresh = iter.ReadString()