Revert "feat(issues): add structured ticket search"

This commit is contained in:
LinYushen 2026-04-08 15:15:08 +08:00 committed by GitHub
parent 3c08395741
commit 39ca8ed9e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 27 additions and 1033 deletions

View file

@ -7,14 +7,6 @@ WHERE workspace_id = $1
ORDER BY position ASC, created_at DESC
LIMIT $2 OFFSET $3;
-- name: ListAllIssues :many
SELECT * FROM issue
WHERE workspace_id = $1
AND (sqlc.narg('status')::text IS NULL OR status = sqlc.narg('status'))
AND (sqlc.narg('priority')::text IS NULL OR priority = sqlc.narg('priority'))
AND (sqlc.narg('assignee_id')::uuid IS NULL OR assignee_id = sqlc.narg('assignee_id'))
ORDER BY position ASC, created_at DESC;
-- name: GetIssue :one
SELECT * FROM issue
WHERE id = $1;