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 (
|
const (
|
||||||
maxListQueryLength = 8
|
maxListQueryLength = 8
|
||||||
maxListQueryLimit = 100
|
maxListQueryLimit = 50
|
||||||
defaultQueryLimit = 1000
|
defaultQueryLimit = 1000
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -202,15 +202,11 @@ func (dr *DashboardServiceImpl) findDashboardsZanzanaCheck(ctx context.Context,
|
|||||||
defer span.End()
|
defer span.End()
|
||||||
|
|
||||||
query.SkipAccessControlFilter = true
|
query.SkipAccessControlFilter = true
|
||||||
// Set limit to default to prevent pagination issues
|
|
||||||
queryLimit := query.Limit
|
|
||||||
query.Limit = defaultQueryLimit
|
|
||||||
findRes, err := dr.dashboardStore.FindDashboards(ctx, query)
|
findRes, err := dr.dashboardStore.FindDashboards(ctx, query)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
query.Limit = queryLimit
|
|
||||||
return dr.checkDashboards(ctx, query, findRes)
|
return dr.checkDashboards(ctx, query, findRes)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user