feat: Workspaces filtering (#1972)

Co-authored-by: G r e y <grey@coder.com>
Co-authored-by: Kira Pilot <kira@coder.com>
This commit is contained in:
Garrett Delfosse
2022-06-03 12:20:28 -05:00
committed by GitHub
parent ac6cb269db
commit 8b03e2b0e1
14 changed files with 377 additions and 121 deletions

View File

@ -28,6 +28,12 @@ WHERE
owner_id = @owner_id
ELSE true
END
-- Filter by name
AND CASE
WHEN @name :: text != '' THEN
LOWER(name) = LOWER(@name)
ELSE true
END
;
-- name: GetWorkspacesByOrganizationIDs :many