Skip to content

Commit 7c9f686

Browse files
committed
Remove workspace IDs filter arg
1 parent 1821dcb commit 7c9f686

File tree

3 files changed

+16
-31
lines changed

3 files changed

+16
-31
lines changed

coderd/database/modelqueries.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ func (q *sqlQuerier) GetAuthorizedWorkspaces(ctx context.Context, arg GetWorkspa
200200
rows, err := q.db.QueryContext(ctx, query,
201201
arg.Deleted,
202202
arg.Status,
203-
pq.Array(arg.WorkspaceIds),
204203
arg.OwnerID,
205204
arg.OwnerUsername,
206205
arg.TemplateName,

coderd/database/queries.sql.go

Lines changed: 16 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/workspaces.sql

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,6 @@ WHERE
166166
END
167167
ELSE true
168168
END
169-
-- Filter by workspace ID
170-
AND CASE
171-
WHEN array_length(@workspace_ids :: uuid [ ], 1) > 0 THEN
172-
workspaces.id = ANY(@workspace_ids :: uuid [ ])
173-
ELSE true
174-
END
175169
-- Filter by owner_id
176170
AND CASE
177171
WHEN @owner_id :: uuid != '00000000-0000-0000-0000-000000000000'::uuid THEN

0 commit comments

Comments
 (0)