Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0d0ea98

Browse files
authored
fix: Filter by deleted when querying workspaces (#4512)
Fixes#4508.
1 parent0fa8f52 commit0d0ea98

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎coderd/database/queries.sql.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/database/queries/workspaces.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ WHERE
109109
-- Filter by owner_name
110110
AND CASE
111111
WHEN @owner_username ::text!='' THEN
112-
owner_id= (SELECT idFROM usersWHERElower(username)=lower(@owner_username))
112+
owner_id= (SELECT idFROM usersWHERElower(username)=lower(@owner_username)AND deleted= false)
113113
ELSE true
114114
END
115115
-- Filter by template_name
116116
-- There can be more than 1 template with the same name across organizations.
117117
-- Use the organization filter to restrict to 1 org if needed.
118118
AND CASE
119119
WHEN @template_name ::text!='' THEN
120-
template_id= ANY(SELECT idFROM templatesWHERElower(name)=lower(@template_name))
120+
template_id= ANY(SELECT idFROM templatesWHERElower(name)=lower(@template_name)AND deleted= false)
121121
ELSE true
122122
END
123123
-- Filter by template_ids

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp