From 669eecdcf0a5673966db6ffb97be77d9a806f67b Mon Sep 17 00:00:00 2001 From: Parag Jain Date: Tue, 20 Feb 2024 21:17:11 +0530 Subject: [PATCH] Admin: fix kind string for iFrame embeds (#4107) --- admin/server/deployment.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/server/deployment.go b/admin/server/deployment.go index e76c4aef002..6f267ff60e8 100644 --- a/admin/server/deployment.go +++ b/admin/server/deployment.go @@ -12,6 +12,7 @@ import ( "github.com/rilldata/rill/admin/pkg/urlutil" "github.com/rilldata/rill/admin/server/auth" adminv1 "github.com/rilldata/rill/proto/gen/rill/admin/v1" + "github.com/rilldata/rill/runtime" "github.com/rilldata/rill/runtime/pkg/observability" runtimeauth "github.com/rilldata/rill/runtime/server/auth" "go.opentelemetry.io/otel/attribute" @@ -352,7 +353,7 @@ func (s *Server) GetIFrame(ctx context.Context, req *adminv1.GetIFrameRequest) ( s.admin.Used.Deployment(prodDepl.ID) if req.Kind == "" { - req.Kind = "MetricsView" + req.Kind = runtime.ResourceKindMetricsView } iFrameURL, err := urlutil.WithQuery(urlutil.MustJoinURL(s.opts.FrontendURL, "/-/embed"), map[string]string{