You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: add status filtering to tasks API with DONE exclusion by default (#227)
* fix: add status filtering to tasks API with DONE exclusion by default
- Exclude DONE tasks from GET /v1/tasks by default for cleaner active task view
- Add ?status=DONE query parameter to specifically retrieve DONE tasks
- Implement status filtering across all task endpoints:
* GET /v1/tasks - general tasks with status filtering
* GET /v1/tasks?profile=true - user's tasks with status filtering
* GET /v1/tasks?teamId={id} - team tasks with status filtering
- Fix get_tasks_for_user to include both created AND assigned tasks
- Update repository layer (list, count, get_tasks_for_user) with status_filter parameter
- Update service and view layers to pass status filter from query params
- Update serializer to accept status query parameter
- Fix all test assertions to match new method signatures
* chore: extract status filtering logic into a class method
* chore: enhance the status validation by using todo status constants
* chore: added uppercase handling
0 commit comments