Unistore: refactor provisioning to work with folder service (#99473)
This commit is contained in:
@@ -240,9 +240,9 @@ func (s *Service) getFolderByTitleFromApiServer(ctx context.Context, orgID int64
|
||||
Key: folderkey,
|
||||
Fields: []*resource.Requirement{
|
||||
{
|
||||
Key: resource.SEARCH_FIELD_TITLE,
|
||||
Key: resource.SEARCH_FIELD_TITLE_SORT,
|
||||
Operator: string(selection.In),
|
||||
Values: []string{title},
|
||||
Values: []string{strings.ToLower(title)},
|
||||
},
|
||||
},
|
||||
Labels: []*resource.Requirement{},
|
||||
|
||||
@@ -567,7 +567,7 @@ func (r resourceClientMock) Search(ctx context.Context, in *resource.ResourceSea
|
||||
}
|
||||
|
||||
if len(in.Options.Fields) > 0 &&
|
||||
in.Options.Fields[0].Key == resource.SEARCH_FIELD_TITLE &&
|
||||
in.Options.Fields[0].Key == resource.SEARCH_FIELD_TITLE_SORT &&
|
||||
in.Options.Fields[0].Operator == "in" &&
|
||||
len(in.Options.Fields[0].Values) > 0 &&
|
||||
in.Options.Fields[0].Values[0] == "foo" {
|
||||
|
||||
Reference in New Issue
Block a user