777 B
777 B
prompt
Test prompt
Write test test_task_list_combined_filters_sort_pagination:
- Setup: 100 tasks across 3 projects, various statuses, assignees, dates
- GET
/tasks/?status={in_progress_id}&project={proj1_id}&sort=-priority&page_size=10&page=2 - Assert: only In Progress tasks from proj1, sorted by priority DESC, page 2 (items 11-20)
- Verify all filter/sort/pagination params work together correctly Run test - should FAIL
Implementation prompt Ensure all filters/sort/pagination work together:
- In view: apply filters then sort then paginate in that order
- Template: all filter/sort/page_size inputs in same
<form method="GET">, pagination links preserve all query params via templatetags - Clear Filters link =
/tasks/(drops all params) Run test - should PASS