From 770fd01058c44ece2d91ced33b3a131c29b8ee6b Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Wed, 8 Jan 2025 16:18:39 +0545 Subject: [PATCH] fix: make SetResourceSelectorClause public it's being used in canary checker --- query/resource_selector.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/query/resource_selector.go b/query/resource_selector.go index 1007802e..e3926519 100644 --- a/query/resource_selector.go +++ b/query/resource_selector.go @@ -152,8 +152,7 @@ func SearchResources(ctx context.Context, req SearchResourcesRequest) (*SearchRe return &output, nil } -func setResourceSelectorClause(ctx context.Context, resourceSelector types.ResourceSelector, query *gorm.DB, table string, allowedColumnsAsFields []string) (*gorm.DB, error) { - +func SetResourceSelectorClause(ctx context.Context, resourceSelector types.ResourceSelector, query *gorm.DB, table string, allowedColumnsAsFields []string) (*gorm.DB, error) { // We call setSearchQueryParams as it sets those params that // might later be used by the query @@ -397,7 +396,7 @@ func queryResourceSelector(ctx context.Context, limit int, resourceSelector type query = query.Limit(limit) } - query, err := setResourceSelectorClause(ctx, resourceSelector, query, table, allowedColumnsAsFields) + query, err := SetResourceSelectorClause(ctx, resourceSelector, query, table, allowedColumnsAsFields) if err != nil { return nil, err }