feat: show dormant workspaces by default (#11053)

This commit is contained in:
Jon Ayers
2023-12-07 18:09:35 -06:00
committed by GitHub
parent be31b2e4d7
commit e73a202aed
15 changed files with 196 additions and 183 deletions
+3 -5
View File
@@ -239,13 +239,11 @@ WHERE
) > 0
ELSE true
END
-- Filter by dormant workspaces. By default we do not return dormant
-- workspaces since they are considered soft-deleted.
-- Filter by dormant workspaces.
AND CASE
WHEN @is_dormant :: text != '' THEN
WHEN @dormant :: boolean != 'false' THEN
dormant_at IS NOT NULL
ELSE
dormant_at IS NULL
ELSE true
END
-- Filter by last_used
AND CASE