Revert "feat: add global issue search"

This commit is contained in:
Naiyuan Qing 2026-04-01 22:24:35 +08:00 committed by GitHub
parent 59ebf30cf0
commit b28bac6bb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 11 additions and 180 deletions

View file

@ -195,7 +195,6 @@ WHERE workspace_id = $1
AND ($4::text IS NULL OR status = $4)
AND ($5::text IS NULL OR priority = $5)
AND ($6::uuid IS NULL OR assignee_id = $6)
AND ($7::text IS NULL OR title ILIKE '%' || $7 || '%')
ORDER BY position ASC, created_at DESC
LIMIT $2 OFFSET $3
`
@ -207,7 +206,6 @@ type ListIssuesParams struct {
Status pgtype.Text `json:"status"`
Priority pgtype.Text `json:"priority"`
AssigneeID pgtype.UUID `json:"assignee_id"`
Search pgtype.Text `json:"search"`
}
func (q *Queries) ListIssues(ctx context.Context, arg ListIssuesParams) ([]Issue, error) {
@ -218,7 +216,6 @@ func (q *Queries) ListIssues(ctx context.Context, arg ListIssuesParams) ([]Issue
arg.Status,
arg.Priority,
arg.AssigneeID,
arg.Search,
)
if err != nil {
return nil, err