We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d50d37b commit 6ac1ba2Copy full SHA for 6ac1ba2
coderd/database/queries/workspaces.sql
@@ -259,11 +259,13 @@ WHERE
259
) > 0
260
ELSE true
261
END
262
- -- Filter by locked workspaces.
+ -- Filter by locked workspaces. By default we do not return locked
263
+ -- workspaces since they are considered soft-deleted.
264
AND CASE
265
WHEN @locked_at :: timestamptz > '0001-01-01 00:00:00+00'::timestamptz THEN
266
locked_at IS NOT NULL AND locked_at >= @locked_at
- ELSE true
267
+ ELSE
268
+ locked_at IS NULL
269
270
-- Authorize Filter clause will be injected below in GetAuthorizedWorkspaces
271
-- @authorize_filter
0 commit comments