mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Remove folderid service test (#80433)
* Remove FolderID from service tests * Add models * Add folderID pack to publicdashboard tests * Remove folderID from dashboard tests * Remove folderID from folders * Remove folderID from ngalert tests * Remove nolint comment * Add back some tests after rebase
This commit is contained in:
@@ -134,16 +134,16 @@ func populateDB(folderCount, dashboardsPerFolder int, sqlStore *sqlstore.SQLStor
|
||||
|
||||
for u := start; u < end; u++ {
|
||||
dashID := int64(u + offset)
|
||||
folderID := int64((u+offset)%folderCount + 1)
|
||||
folderUID := fmt.Sprintf("folder%v", int64((u+offset)%folderCount+1))
|
||||
dbs = append(dbs, dashboards.Dashboard{
|
||||
ID: dashID,
|
||||
UID: fmt.Sprintf("dashboard%v", dashID),
|
||||
Title: fmt.Sprintf("dashboard%v", dashID),
|
||||
IsFolder: false,
|
||||
FolderID: folderID, // nolint:staticcheck
|
||||
OrgID: 1,
|
||||
Created: now,
|
||||
Updated: now,
|
||||
ID: dashID,
|
||||
UID: fmt.Sprintf("dashboard%v", dashID),
|
||||
Title: fmt.Sprintf("dashboard%v", dashID),
|
||||
IsFolder: false,
|
||||
FolderUID: folderUID,
|
||||
OrgID: 1,
|
||||
Created: now,
|
||||
Updated: now,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user