mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
89d3b55bec
* Add folder store method for fetching all folder descendants * Modify GetDescendantCounts() to fetch folder descendants at once * Reduce DB calls when counting library panels under dashboard * Reduce DB calls when counting dashboards under folder * Reduce DB calls during folder delete * Modify folder registry to count/delete entities under multiple folders * Reduce DB calls when counting * Reduce DB calls when deleting
14 lines
361 B
Go
14 lines
361 B
Go
package folder
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/services/auth/identity"
|
|
)
|
|
|
|
type RegistryService interface {
|
|
DeleteInFolders(ctx context.Context, orgID int64, folderUIDs []string, user identity.Requester) error
|
|
CountInFolders(ctx context.Context, orgID int64, folderUIDs []string, user identity.Requester) (int64, error)
|
|
Kind() string
|
|
}
|