mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd): add ability to search org members by user_id, is_system, github_user_id (#20048)
Adds the ability to search org members by query. Supported fields: `user_id`, `is_system`, `github_user_id`.
This commit is contained in:
@@ -28,7 +28,13 @@ WHERE
|
||||
WHEN @include_system::bool THEN TRUE
|
||||
ELSE
|
||||
is_system = false
|
||||
END;
|
||||
END
|
||||
-- Filter by github user ID. Note that this requires a join on the users table.
|
||||
AND CASE
|
||||
WHEN @github_user_id :: bigint != 0 THEN
|
||||
users.github_com_user_id = @github_user_id
|
||||
ELSE true
|
||||
END;
|
||||
|
||||
-- name: InsertOrganizationMember :one
|
||||
INSERT INTO
|
||||
|
||||
Reference in New Issue
Block a user