mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard: Make dashboard search faster (#88019)
This commit is contained in:
parent
e324a346f6
commit
28992f0488
@ -817,9 +817,7 @@ func (d *dashboardStore) FindDashboards(ctx context.Context, query *dashboards.F
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
filters := []any{
|
filters := []any{}
|
||||||
permissions.NewAccessControlDashboardPermissionFilter(query.SignedInUser, query.Permission, query.Type, d.features, recursiveQueriesAreSupported),
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, filter := range query.Sort.Filter {
|
for _, filter := range query.Sort.Filter {
|
||||||
filters = append(filters, filter)
|
filters = append(filters, filter)
|
||||||
@ -868,6 +866,8 @@ func (d *dashboardStore) FindDashboards(ctx context.Context, query *dashboards.F
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
filters = append(filters, permissions.NewAccessControlDashboardPermissionFilter(query.SignedInUser, query.Permission, query.Type, d.features, recursiveQueriesAreSupported))
|
||||||
|
|
||||||
filters = append(filters, searchstore.DeletedFilter{Deleted: query.IsDeleted})
|
filters = append(filters, searchstore.DeletedFilter{Deleted: query.IsDeleted})
|
||||||
|
|
||||||
var res []dashboards.DashboardSearchProjection
|
var res []dashboards.DashboardSearchProjection
|
||||||
|
Loading…
Reference in New Issue
Block a user