From dbac96648276a41dfd589b1795dd8c469f15a697 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Thu, 11 Apr 2024 12:48:51 +0300 Subject: [PATCH] [v10.4.x] Dashboard: Allow `auto` refresh option when saving a dashboard (#85921) --- pkg/services/dashboards/service/dashboard_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/dashboards/service/dashboard_service.go b/pkg/services/dashboards/service/dashboard_service.go index 12b459d478f..a0056ab38ed 100644 --- a/pkg/services/dashboards/service/dashboard_service.go +++ b/pkg/services/dashboards/service/dashboard_service.go @@ -288,7 +288,7 @@ func validateDashboardRefreshInterval(minRefreshInterval string, dash *dashboard } refresh := dash.Data.Get("refresh").MustString("") - if refresh == "" { + if refresh == "" || refresh == "auto" { // since no refresh is set it is a valid refresh rate return nil }