From bc3d44de5b9edb0add274eef4e671fb4eb1ffa91 Mon Sep 17 00:00:00 2001 From: jsun-m <91754185+jsun-m@users.noreply.github.com> Date: Mon, 4 Nov 2024 13:59:30 -0700 Subject: [PATCH] Feat: Allow for fuzzy match in deployment name (#686) --- pkg/repository/backend_postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/repository/backend_postgres.go b/pkg/repository/backend_postgres.go index db42d9f40..c3b45dcf8 100644 --- a/pkg/repository/backend_postgres.go +++ b/pkg/repository/backend_postgres.go @@ -1077,7 +1077,7 @@ func (c *PostgresBackendRepository) listDeploymentsQueryBuilder(filters types.De } if filters.Name != "" { - qb = qb.Where(squirrel.Like{"d.name": filters.Name}) + qb = qb.Where(squirrel.Like{"d.name": fmt.Sprintf("%%%s%%", filters.Name)}) } if filters.Active != nil {