K8s/Dashboards: Remove slug annotation (#102270)

This commit is contained in:
Ryan McKinley
2025-03-17 19:01:29 +02:00
committed by GitHub
parent 261d7db0e6
commit fd4e08e318
3 changed files with 18 additions and 19 deletions
@@ -1949,11 +1949,12 @@ func (dr *DashboardServiceImpl) UnstructuredToLegacyDashboard(ctx context.Contex
dashVersion := obj.GetGeneration()
spec["version"] = dashVersion
title, _, _ := unstructured.NestedString(spec, "title")
out := dashboards.Dashboard{
OrgID: orgID,
ID: obj.GetDeprecatedInternalID(), // nolint:staticcheck
UID: uid,
Slug: obj.GetSlug(),
Slug: slugify.Slugify(title),
FolderUID: obj.GetFolder(),
Version: int(dashVersion),
Data: simplejson.NewFromAny(spec),