stumpylog and Claude Sonnet 4.6
bc63ca5806
test(tasks): rewrite API task tests for redesigned model and v9 compat
...
Replaces the old Django TestCase-based tests with pytest-style classes using
PaperlessTaskFactory. Covers v10 field names, v9 backwards-compat field
mapping, filtering, ordering, acknowledge, acknowledge_all, summary, active,
and run endpoints. Also adds PaperlessTaskFactory to factories.py and fixes
a redundant source= kwarg in TaskSerializerV10.related_document_ids.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-15 18:34:34 -07:00
stumpylog
1ae146a38b
fix(tasks): add read_only_fields to TaskSerializerV9, enforce admin via permission_classes on run action
2026-04-15 18:34:34 -07:00
stumpylog and Claude Sonnet 4.6
39c7a04dd2
feat(tasks): update serializer, filter, and viewset with v9 backwards compat
...
- Replace TasksViewSerializer/RunTaskViewSerializer with TaskSerializerV10
(new field names), TaskSerializerV9 (v9 compat), TaskSummarySerializer,
and RunTaskSerializer
- Add AcknowledgeTasksViewSerializer unchanged (kept existing validation)
- Expand PaperlessTaskFilterSet with MultipleChoiceFilter for task_type,
trigger_source, status; add is_complete, date_created_after/before filters
- Replace TasksViewSet.get_serializer_class() to branch on request.version
- Add get_queryset() v9 compat for task_name/type query params
- Add acknowledge_all, summary, active actions to TasksViewSet
- Rewrite run action to use apply_async with trigger_source header
- Add timedelta import to views.py; add MultipleChoiceFilter/DateTimeFilter
to filters.py imports
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-15 18:34:34 -07:00
stumpylog and Claude Sonnet 4.6
ef4e3d31ef
feat(tasks): replace PaperlessTask model with structured redesign
...
Drop the old string-based PaperlessTask table and recreate it with
Status/TaskType/TriggerSource enums, JSONField result storage, and
duration tracking fields. Update all call sites to use the new API.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-15 18:34:34 -07:00
shamoon
8f036c9521
Merge branch 'main' into dev
...
# Conflicts:
# docs/usage.md
# src/documents/signals/handlers.py
# src/documents/tests/test_api_documents.py
# src/documents/views.py
2026-04-14 15:11:23 -07:00
3b6edcdd8e
Chore: Add generic type params and update our baselines ( #12566 )
...
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-13 14:12:59 -07:00
aed9abe48c
Feature: Replace Whoosh with tantivy search backend ( #12471 )
...
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
Co-authored-by: Antoine Mérino <3023499+Merinorus@users.noreply.github.com >
2026-04-02 12:38:22 -07:00
shamoon and GitHub
d2328b776a
Performance: support bulk edit without id lists ( #12355 )
2026-03-31 18:23:28 +00:00
shamoon and GitHub
245514ad10
Performance: deprecate and remove usage of all in API results ( #12309 )
2026-03-31 07:55:59 -07:00
shamoon and GitHub
3292a0e7cc
Fix: validate date CF value in serializer ( #12410 )
2026-03-21 08:49:52 -07:00
shamoon
0f84af27d0
Merge branch 'main' into dev
...
# Conflicts:
# docs/setup.md
# src-ui/src/main.ts
# src/documents/tests/test_api_bulk_edit.py
# src/documents/tests/test_api_custom_fields.py
# src/documents/tests/test_api_search.py
# src/documents/tests/test_api_status.py
# src/documents/tests/test_workflows.py
# src/paperless_mail/tests/test_api.py
2026-03-21 02:12:19 -07:00
shamoon
f84e0097e5
Fix validate document link targets
2026-03-21 00:55:36 -07:00
shamoon and GitHub
86573fc1a0
Chore: separate actions from bulk edit endpoint ( #12286 )
2026-03-10 18:55:36 +00:00
shamoon and GitHub
3e32e90355
Breaking: drop support for api versions < 9 ( #12284 )
2026-03-09 22:36:22 +00:00
bc26d94593
Chore: Add saved view compatibility in API version 9 ( #12280 )
...
---------
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com >
2026-03-08 18:50:31 -07:00
shamoon and GitHub
731448a8f9
Fixhancement: support version-specific edits ( #12233 )
2026-03-06 11:59:26 -08:00
shamoon and GitHub
85a18e5911
Enhancement: saved view sharing ( #12142 )
2026-03-04 14:15:43 -08:00
shamoon
f65807b906
Merge branch 'main' into dev
...
# Conflicts:
# docs/setup.md
# src-ui/src/app/components/manage/document-attributes/management-list/management-list.component.ts
# src/documents/tests/test_api_documents.py
2026-02-28 02:31:20 -08:00
shamoon
b010f65ae7
Fix GHSA-386h-chg4-cfw9
2026-02-28 01:16:53 -08:00
shamoon and GitHub
ceee769e26
Feature: document file versions ( #12061 )
2026-02-26 16:46:54 +00:00
Trenton H and GitHub
53ac338946
Breaking: Removes API v1 and the related serializer ( #12166 )
2026-02-26 04:06:43 +00:00
shamoon
426c0a8974
Chore: typing fixes
2026-02-16 09:54:06 -08:00
shamoon
4884b67714
Fix more typing failures
2026-02-16 09:37:33 -08:00
shamoon
be4e29a19c
Merge branch 'main' into dev
2026-02-16 09:01:19 -08:00
shamoon
afaf39e43a
Fix/GHSA-x395-6h48-wr8v
2026-02-16 00:02:15 -08:00
shamoon and GitHub
5b45b89d35
Performance fix: use subqueries to improve object retrieval in large installs ( #11950 )
2026-02-05 08:46:32 -08:00
shamoon and GitHub
e45fca475a
Feature: password removal workflow action ( #11665 )
2026-02-03 17:10:07 +00:00
Sebastian Steinbeißer and GitHub
3b5ffbf9fa
Chore(mypy): Annotate None returns for typing improvements ( #11213 )
2026-02-02 08:44:12 -08:00
shamoon
c3b036e0d3
Merge branch 'main' into dev
2026-01-31 09:10:33 -08:00
shamoon
5cc3c087d9
Security: enforce ownership for permission updates
2026-01-30 13:55:55 -08:00
shamoon and GitHub
1f074390e4
Feature: sharelink bundles ( #11682 )
2026-01-27 18:54:51 +00:00
shamoon and GitHub
4428354150
Feature: allow duplicates with warnings, UI for discovery ( #11815 )
2026-01-26 18:55:08 +00:00
shamoon
2312314aa7
Performance: improve treenode inefficiencies ( #11606 )
2026-01-25 21:47:08 -08:00
shamoon and GitHub
45f5025f78
Enhancement: Add 'any of' workflow trigger filters ( #11683 )
2026-01-25 13:45:50 -08:00
shamoon and Trenton H
742c136773
Fix: use explicit order field for workflow actions ( #11781 )
2026-01-16 07:39:00 -08:00
shamoon and GitHub
055ce9172c
Fix: use explicit order field for workflow actions ( #11781 )
2026-01-15 22:49:21 +00:00
shamoon
cb091665e2
Fix: validate cf integer values within PostgreSQL range ( #11666 )
2026-01-13 09:36:29 -08:00
shamoon and GitHub
7b666e7569
Performance: improve treenode inefficiencies ( #11606 )
2026-01-12 13:04:03 -08:00
shamoon and GitHub
5b1e66be91
Feature: password removal action ( #11656 )
2026-01-08 21:36:11 +00:00
shamoon and GitHub
a3c19b1e2d
Fix: validate cf integer values within PostgreSQL range ( #11666 )
2025-12-29 06:48:31 -08:00
shamoon
d391fdec64
Resolve CodeQL warning
2025-12-12 09:39:56 -08:00
shamoon and GitHub
9bdbfd362f
Merge commit from fork
...
* Add safe regex matching with timeouts and validation
* Remove redundant length check
* Remove timeouterror workaround
2025-12-12 09:28:47 -08:00
shamoon and GitHub
3a1d33225e
Fixhancement: pass ordering to tag children ( #11556 )
2025-12-12 16:43:16 +00:00
shamoon and GitHub
317f239d09
Fix: pass additional arguments to TagSerializer for permissions ( #11576 )
2025-12-10 08:38:28 -08:00
shamoon and GitHub
ad45e3f747
Fix: respect fields parameter for created field ( #11251 )
2025-11-01 13:13:39 -07:00
shamoon and GitHub
13161ebb01
Fix: retrieve document_count for tag children ( #11125 )
2025-10-22 11:13:15 -07:00
shamoon and GitHub
fcae006afa
Tweak: improve tag parent validation error handling ( #11096 )
2025-10-20 22:42:01 -07:00
shamoon and GitHub
f6c004183e
Feature: Advanced Workflow Trigger Filters ( #11029 )
2025-10-13 22:23:56 +00:00
f0d1c75fac
Feature: add support for emailing multiple documents ( #10666 )
...
---------
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com >
2025-10-13 13:16:43 -07:00
Antoine Mérino and GitHub
3df43d828a
Performance: Cache django-guardian permissions when counting documents ( #10657 )
...
Fixes N+1 queries in tag, correspondent, storage path, custom field,
and document type list views.
Reduces SQL queries from 160 to 9.
2025-09-30 09:48:44 -07:00