mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
revert
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
|
||||
const (
|
||||
maxListQueryLength = 8
|
||||
maxListQueryLimit = 100
|
||||
maxListQueryLimit = 50
|
||||
defaultQueryLimit = 1000
|
||||
)
|
||||
|
||||
@@ -202,15 +202,11 @@ func (dr *DashboardServiceImpl) findDashboardsZanzanaCheck(ctx context.Context,
|
||||
defer span.End()
|
||||
|
||||
query.SkipAccessControlFilter = true
|
||||
// Set limit to default to prevent pagination issues
|
||||
queryLimit := query.Limit
|
||||
query.Limit = defaultQueryLimit
|
||||
findRes, err := dr.dashboardStore.FindDashboards(ctx, query)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
query.Limit = queryLimit
|
||||
return dr.checkDashboards(ctx, query, findRes)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user