fix: fix workspace status filter returning more statuses that requested (#7732)
This commit is contained in:
1 parent
b9e3226612
commit
fa8f50a169
6 files changed
+347
-84
No files matched your search
@@ -157,10 +157,12 @@ WHERE
|
||||
latest_build.canceled_at IS NULL AND
|
||||
latest_build.completed_at IS NOT NULL AND
|
||||
latest_build.updated_at - INTERVAL '30 seconds' < NOW() AND
|
||||
latest_build.transition = 'delete'::workspace_transition
|
||||
latest_build.transition = 'delete'::workspace_transition AND
|
||||
-- If the error field is not null, the status is 'failed'
|
||||
latest_build.error IS NULL
|
||||
|
||||
WHEN @status = 'deleting' THEN
|
||||
latest_build.completed_at IS NOT NULL AND
|
||||
latest_build.completed_at IS NULL AND
|
||||
latest_build.canceled_at IS NULL AND
|
||||
latest_build.error IS NULL AND
|
||||
latest_build.transition = 'delete'::workspace_transition
|
||||
|
||||
Reference in new issue
Block a user