K8s: use deprecatedInternalID label rather than SQL annotation (#99263)

This commit is contained in:
Ryan McKinley
2025-01-21 12:38:14 +03:00
committed by GitHub
parent 9ce9ad1777
commit d8b6ded101
15 changed files with 62 additions and 90 deletions
@@ -532,10 +532,7 @@ func (a *dashboardSqlAccess) GetLibraryPanels(ctx context.Context, query Library
meta.SetCreatedBy(p.CreatedBy)
meta.SetUpdatedBy(p.UpdatedBy)
meta.SetUpdatedTimestamp(&p.Updated)
meta.SetRepositoryInfo(&utils.ResourceRepositoryInfo{
Name: "SQL",
Path: strconv.FormatInt(p.ID, 10),
})
meta.SetDeprecatedInternalID(p.ID) // nolint:staticcheck
res.Items = append(res.Items, item)
if len(res.Items) > limit {