diff --git a/pkg/services/dashboards/database/database_test.go b/pkg/services/dashboards/database/database_test.go index b2f8deb6112..69218a2d51c 100644 --- a/pkg/services/dashboards/database/database_test.go +++ b/pkg/services/dashboards/database/database_test.go @@ -1239,6 +1239,7 @@ func makeQueryResult(query *dashboards.FindPersistedDashboardsQuery, res []dashb Tags: []string{}, } + // nolint:staticcheck if item.FolderID > 0 { hit.FolderURL = dashboards.GetFolderURL(item.FolderUID, item.FolderSlug) } diff --git a/pkg/services/dashboards/models.go b/pkg/services/dashboards/models.go index 1a572ca44c1..2d094aabec5 100644 --- a/pkg/services/dashboards/models.go +++ b/pkg/services/dashboards/models.go @@ -348,12 +348,13 @@ type SaveDashboardDTO struct { } type DashboardSearchProjection struct { - ID int64 `xorm:"id"` - UID string `xorm:"uid"` - Title string - Slug string - Term string - IsFolder bool + ID int64 `xorm:"id"` + UID string `xorm:"uid"` + Title string + Slug string + Term string + IsFolder bool + // Deprecated: use FolderUID instead FolderID int64 `xorm:"folder_id"` FolderUID string `xorm:"folder_uid"` FolderSlug string diff --git a/pkg/services/dashboards/service/dashboard_service.go b/pkg/services/dashboards/service/dashboard_service.go index 7c817c91370..1531d3a91ce 100644 --- a/pkg/services/dashboards/service/dashboard_service.go +++ b/pkg/services/dashboards/service/dashboard_service.go @@ -564,6 +564,7 @@ func makeQueryResult(query *dashboards.FindPersistedDashboardsQuery, res []dashb Tags: []string{}, } + // nolint:staticcheck if item.FolderID > 0 { hit.FolderURL = dashboards.GetFolderURL(item.FolderUID, item.FolderSlug) }