Skip to content

Commit

Permalink
Feat: Allow for fuzzy match in deployment name (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun-m authored Nov 4, 2024
1 parent 50dddae commit bc3d44d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/repository/backend_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bc3d44d

Please sign in to comment.