Dashboards: Make conversion data optional (#109965)

This commit is contained in:
Ryan McKinley
2025-08-25 13:47:42 +03:00
committed by GitHub
parent da5209be1e
commit 27c92a6644
61 changed files with 200 additions and 203 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/serializer"
"k8s.io/apiserver/pkg/storage"
"k8s.io/utils/ptr"
authlib "github.com/grafana/authlib/types"
dashv1 "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v1beta1"
@@ -159,7 +160,7 @@ func TestPrepareObjectForStorage(t *testing.T) {
err = meta.SetStatus(dashv1.DashboardStatus{
Conversion: &dashv1.DashboardConversionStatus{
Failed: true,
Error: "test",
Error: ptr.To("test"),
},
})
require.NoError(t, err)
@@ -29,7 +29,6 @@ import (
"k8s.io/apiserver/pkg/storage/storagebackend"
claims "github.com/grafana/authlib/types"
"github.com/grafana/grafana/pkg/apimachinery/identity"
storagetesting "github.com/grafana/grafana/pkg/apiserver/storage/testing"
"github.com/grafana/grafana/pkg/storage/unified/apistore"