unified-storage: Reduce calls to the user service (#102934)
* Create ListByIdOrUID in user service * create UnstructuredToLegacyFolderList * update GetFolders to use list parser * update GetDescendants to use list parser * update UnstructuredToLegacyFolder to also make a single call to the user service --------- Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com>
This commit is contained in:
co-authored by
Stephanie Hingtgen
parent
7e3efb3df2
commit
51825cfffe
@@ -16,6 +16,7 @@ type Service interface {
|
||||
GetByID(context.Context, *GetUserByIDQuery) (*User, error)
|
||||
// GetByUID returns a user by UID. This also includes service accounts (identity use only)
|
||||
GetByUID(context.Context, *GetUserByUIDQuery) (*User, error)
|
||||
ListByIdOrUID(context.Context, []string, []int64) ([]*User, error)
|
||||
GetByLogin(context.Context, *GetUserByLoginQuery) (*User, error)
|
||||
GetByEmail(context.Context, *GetUserByEmailQuery) (*User, error)
|
||||
Update(context.Context, *UpdateUserCommand) error
|
||||
|
||||
Reference in New Issue
Block a user