diff --git a/Woverine.pdf b/Woverine.pdf new file mode 100644 index 00000000..88311347 Binary files /dev/null and b/Woverine.pdf differ diff --git a/sources/NearBeach_doubled_setup.json b/sources/NearBeach_doubled_setup.json index 72ef1a18..b2f904de 100644 --- a/sources/NearBeach_doubled_setup.json +++ b/sources/NearBeach_doubled_setup.json @@ -1,3 +1,4 @@ +cat > /tmp/your_data.json <<'EOF' [ { "model": "auth.user", @@ -9901,4 +9902,6 @@ "is_deleted": false } } -] \ No newline at end of file +] +EOF +python3 manage.py loaddata /tmp/your_data.json \ No newline at end of file diff --git a/sources/Test prompt.md b/sources/Test prompt.md new file mode 100644 index 00000000..989b2e67 --- /dev/null +++ b/sources/Test prompt.md @@ -0,0 +1,17 @@ +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 `
`, pagination links preserve all query params via templatetags +- Clear Filters link = `/tasks/` (drops all params) +Run test - should PASS \ No newline at end of file