The task board loads each column with GET /tasks?status=<status. The endpoint returns every task no matter what status is, so completed tasks appear in the pending column and the counts in the column headers are wrong.
The task board loads each column with GET /tasks?status=<status>. The endpoint returns every task no matter what status is, so completed tasks appear in the pending column and the counts in the column headers are wrong.
POST /tasks.PATCH /tasks/:id and { "status": "completed" }.GET /tasks?status=pending.GET /tasks?status=pending returns only tasks whose status is pending.GET /tasks?status=completed returns only tasks whose status is completed.GET /tasks with no status returns every task, as it does today.All three requests return the full list.
status query parameter filters the response.status behave exactly as before.Valid statuses are pending and completed. Validating unknown values is out of scope for this ticket.
Visible test command
npm test -- --testPathPattern=visibleThe repository’s own tests. Run all tests includes them, and so does every submission.
Repository
express-task-api
Changes under src/ are evaluated.