DashboardStore: Provide an interface directly rather than pointer receiver (#63910)

This commit is contained in:
Ryan McKinley
2023-03-01 07:52:16 -08:00
committed by GitHub
parent a91e0a49c9
commit 22aa09d392
12 changed files with 60 additions and 63 deletions
@@ -29,7 +29,7 @@ func TestIntegrationDashboardFolderDataAccess(t *testing.T) {
var sqlStore *sqlstore.SQLStore
var flder, dashInRoot, childDash *dashboards.Dashboard
var currentUser user.User
var dashboardStore *DashboardStore
var dashboardStore dashboards.Store
setup := func() {
sqlStore = db.InitTestDB(t)
@@ -477,7 +477,7 @@ func TestIntegrationDashboardFolderDataAccess(t *testing.T) {
})
}
func moveDashboard(t *testing.T, dashboardStore *DashboardStore, orgId int64, dashboard *simplejson.Json,
func moveDashboard(t *testing.T, dashboardStore dashboards.Store, orgId int64, dashboard *simplejson.Json,
newFolderId int64) *dashboards.Dashboard {
t.Helper()