Set Query Title when searching folder by title (#101169)

* Set Query to Title when serching folder by title

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>

---------

Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
This commit is contained in:
maicon
2025-02-26 09:57:12 -03:00
committed by GitHub
parent af0e388622
commit c873d975a4
2 changed files with 95 additions and 8 deletions
@@ -314,16 +314,11 @@ func (s *Service) getFolderByTitleFromApiServer(ctx context.Context, orgID int64
request := &resource.ResourceSearchRequest{
Options: &resource.ListOptions{
Key: folderkey,
Fields: []*resource.Requirement{
{
Key: resource.SEARCH_FIELD_TITLE_PHRASE,
Operator: string(selection.In),
Values: []string{title},
},
},
Key: folderkey,
Fields: []*resource.Requirement{},
Labels: []*resource.Requirement{},
},
Query: title,
Limit: folderSearchLimit}
if parentUID != nil {