-
Notifications
You must be signed in to change notification settings - Fork 149
[BACKEND] Validate task status filter values on list endpoint #467
Copy link
Copy link
Closed
Labels
area:backendBackend API, database, or service workBackend API, database, or service worklevel:intermediate35 pts difficulty label for moderate contributor PRs35 pts difficulty label for moderate contributor PRspriority:mediumImportant issue with normal urgencyImportant issue with normal urgencytype:bugBug fix work category bonus labelBug fix work category bonus labeltype:testingTesting work category bonus labelTesting work category bonus label
Metadata
Metadata
Assignees
Labels
area:backendBackend API, database, or service workBackend API, database, or service worklevel:intermediate35 pts difficulty label for moderate contributor PRs35 pts difficulty label for moderate contributor PRspriority:mediumImportant issue with normal urgencyImportant issue with normal urgencytype:bugBug fix work category bonus labelBug fix work category bonus labeltype:testingTesting work category bonus labelTesting work category bonus label
Problem
GET /api/v1/tasks?status=...accepts arbitrary status strings and returns an empty result for invalid values. This makes client bugs harder to diagnose and weakens the API contract.Expected behavior
The endpoint should validate
statusagainst the knownTaskStatusvalues and return a structured 400 error for invalid values.Acceptance criteria
statusquery parameter before running the SQL query.