mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Deprecate FolderId in DashboardMeta (#77626)
* Chore: Deprecate FolderId in DashboardMeta * chore: regen specs
This commit is contained in:
@@ -83,7 +83,7 @@ func (pd *PublicDashboardServiceImpl) GetPublicDashboardForView(ctx context.Cont
|
||||
Updated: dash.Updated,
|
||||
Version: dash.Version,
|
||||
IsFolder: false,
|
||||
FolderId: dash.FolderID,
|
||||
FolderId: dash.FolderID, // nolint:staticcheck
|
||||
PublicDashboardEnabled: pubdash.IsEnabled,
|
||||
}
|
||||
dash.Data.Get("timepicker").Set("hidden", !pubdash.TimeSelectionEnabled)
|
||||
|
||||
@@ -344,7 +344,7 @@ func TestGetPublicDashboardForView(t *testing.T) {
|
||||
Updated: d.Updated,
|
||||
Version: d.Version,
|
||||
IsFolder: false,
|
||||
FolderId: d.FolderID,
|
||||
FolderId: d.FolderID, // nolint:staticcheck
|
||||
PublicDashboardEnabled: true,
|
||||
},
|
||||
},
|
||||
@@ -372,7 +372,7 @@ func TestGetPublicDashboardForView(t *testing.T) {
|
||||
Updated: d.Updated,
|
||||
Version: d.Version,
|
||||
IsFolder: false,
|
||||
FolderId: d.FolderID,
|
||||
FolderId: d.FolderID, // nolint:staticcheck
|
||||
PublicDashboardEnabled: true,
|
||||
},
|
||||
},
|
||||
@@ -411,6 +411,7 @@ func TestGetPublicDashboardForView(t *testing.T) {
|
||||
assert.Equal(t, test.DashResp.Meta.Updated, dashboardFullWithMeta.Meta.Updated)
|
||||
assert.Equal(t, test.DashResp.Meta.Version, dashboardFullWithMeta.Meta.Version)
|
||||
assert.Equal(t, false, dashboardFullWithMeta.Meta.IsFolder)
|
||||
// nolint:staticcheck
|
||||
assert.Equal(t, test.DashResp.Meta.FolderId, dashboardFullWithMeta.Meta.FolderId)
|
||||
assert.Equal(t, test.DashResp.Meta.PublicDashboardEnabled, dashboardFullWithMeta.Meta.PublicDashboardEnabled)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user