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
@@ -201,6 +201,13 @@ func (statement *Statement) In(column string, args ...any) *Statement {
|
||||
return statement
|
||||
}
|
||||
|
||||
// OrIn generate "Where column IN (?) " statement
|
||||
func (statement *Statement) OrIn(column string, args ...any) *Statement {
|
||||
in := builder.In(statement.Engine.Quote(column), args...)
|
||||
statement.cond = statement.cond.Or(in)
|
||||
return statement
|
||||
}
|
||||
|
||||
// NotIn generate "Where column NOT IN (?) " statement
|
||||
func (statement *Statement) NotIn(column string, args ...any) *Statement {
|
||||
notIn := builder.NotIn(statement.Engine.Quote(column), args...)
|
||||
|
||||
Reference in New Issue
Block a user