Trenton H
18e4505e05
feat: remove root_document references from bulk_edit/tasks, add v1 DocumentVersion to factory
...
- bulk_edit.py: remove get_root_document/get_latest_version_for_root imports,
remove _resolve_root_and_source_doc helper, remove select_related("root_document")
calls, simplify delete() to use CASCADE behavior, update PDF action functions
to use doc directly as root_doc/source_doc
- tasks.py: remove root_document__isnull=True filters from scheduled workflow
queries (field removed from Document model)
- factories.py: add with_version post_generation hook to DocumentFactory so
tests that bypass the consumer still get a v1 DocumentVersion
- test_bulk_edit.py: rewrite version-related tests to use DocumentVersion model
instead of deprecated root_document Document pattern
- test_api_documents.py: add DocumentVersion.objects.create() alongside
Document.objects.create() in tests that call download/preview/thumb/metadata
endpoints, rewrite test_document_history_logs_version_deletion to use
DocumentVersion objects
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-14 08:59:47 -07:00
Trenton H
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
866c9fd858
Fix: correct merge bulk edit indentation
2026-03-15 23:50:54 -07:00
shamoon
731448a8f9
Fixhancement: support version-specific edits ( #12233 )
2026-03-06 11:59:26 -08:00
shamoon
ceee769e26
Feature: document file versions ( #12061 )
2026-02-26 16:46:54 +00:00
shamoon
6192915be7
Fixhancement: improve ASN handling with PDF operations ( #11689 )
2026-02-06 21:14:02 +00:00
Sebastian Steinbeißer
3b5ffbf9fa
Chore(mypy): Annotate None returns for typing improvements ( #11213 )
2026-02-02 08:44:12 -08:00
shamoon
5b1e66be91
Feature: password removal action ( #11656 )
2026-01-08 21:36:11 +00:00
shamoon
7604a0b583
Fix: prevent ASN collisions for merge operations ( #11634 )
2025-12-19 20:05:34 -08:00
shamoon
4cff907ba0
Feature: Nested Tags ( #10833 )
...
---------
Co-authored-by: Trenton H <797416+stumpylog@users.noreply.github.com >
2025-09-17 21:41:39 +00:00
shamoon
44b8c4881a
Fix: fix error when bulk adding empty doc link custom fields ( #10832 )
2025-09-11 13:19:23 -07:00
shamoon
6d72ee795f
Feature: PDF editor ( #10318 )
2025-08-11 17:29:48 +00:00
shamoon
6dea158de9
Fix: prevent self-linking when bulk edit doc link ( #9629 )
2025-04-14 07:12:50 -07:00
shamoon
1e489a0666
Enhancement: add switch to allow merging non-PDFs with archive version ( #9305 )
2025-03-05 20:46:51 +00:00
Trenton H
827fcba277
Chore: Reduce imports for a slight memory improvement ( #9217 )
2025-02-24 15:06:14 -08:00
Sebastian Steinbeißer
e560fa3be0
Chore: Enable ruff FBT ( #8645 )
2025-02-07 09:12:03 -08:00
shamoon
52ab07c673
Fix: deselect and trigger refresh for deleted documents from bulk operations with "delete originals" ( #8996 )
2025-02-07 00:47:50 +00:00
shamoon
54e72d5b60
Fix: also ensure symmetric doc link removal on bulk edit ( #8963 )
2025-01-31 07:39:22 -08:00
shamoon
5b8c9ef5fc
Fix: reflect doc links in bulk modify custom fields ( #8962 )
2025-01-30 10:55:05 -08:00
shamoon
765bf1d11c
Fix: use hard delete when bulk editing custom fields ( #8740 )
2025-01-14 16:47:29 -08:00
shamoon
e4f69dc945
Feature: bulk edit custom field values ( #8428 )
2024-12-09 17:35:49 +00:00
shamoon
9c1561adfb
Change: change update content to handle archive disabled ( #8315 )
2024-11-20 20:01:13 +00:00
Sebastian Steinbeißer
74d0c9fda5
Switch src/documents/bulk*.py from os.path to pathlib.Path ( #7862 )
...
Also:
* Ensure that the ruff PTH check remains enabled for these files and
all files added in the future.
* Add some type annotations.
2024-11-12 17:04:07 +00:00
shamoon
28fdb170bf
Fix: handle uuid fields created under mariadb and Django 4 ( #8034 )
2024-10-28 13:54:16 +00:00
Trenton H
e6f59472e4
Chore: Drop Python 3.9 support ( #7774 )
2024-09-26 12:22:24 -07:00
s0llvan
c92c3e224a
Feature: page count ( #7750 )
...
---------
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com >
2024-09-25 08:22:12 -07:00
shamoon
a64d457c30
Enhancement: use request user as owner of split / merge docs ( #7112 )
2024-06-27 13:46:49 -07:00
shamoon
f3cf608caa
Fix: use temp dir for split / merge ( #7105 )
2024-06-26 10:46:59 -07:00
Dominik Bruhn
d1ac15baa9
Enhancement: support delete originals after split / merge ( #6935 )
...
---------
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com >
2024-06-08 11:29:03 -07:00
shamoon
d558367642
Change: rename redo OCR to reprocess ( #6866 )
2024-05-31 18:41:52 +00:00
shamoon
3e62f13f96
Enhancement: delete pages PDF action ( #6772 )
2024-05-22 23:01:15 +00:00
Trenton H
622f624132
Chore: Change the code formatter to Ruff ( #6756 )
...
* Changing the formatting to ruff-format
* Replaces references to black to ruff or ruff format, removes black from dependencies
2024-05-18 02:26:50 +00:00
shamoon
caec0ed4d1
Fix: allow bulk edit with existing fields ( #6625 )
2024-05-07 14:26:07 -07:00
Trenton H
7be7185418
Handcrafts SQL queries a little more to reduce the query count and/or the amount of returned data ( #6489 )
2024-04-30 07:37:09 -07:00
shamoon
63e1f9f5d3
Feature: custom fields filtering & bulk editing ( #6484 )
2024-04-26 15:10:03 -07:00
Trenton H
ae2b302962
Fix: Rotation fails due to celery chord ( #6306 )
...
Use Celery immutable signature so it does not take the result of the header task
2024-04-06 23:26:48 +00:00
shamoon
4af8070450
Feature: PDF actions - merge, split & rotate ( #6094 )
2024-03-25 18:41:24 -07:00
shamoon
454098630b
Enhancement: mergeable bulk edit permissions ( #5508 )
2024-02-01 19:56:57 +00:00
Trenton H
6f163111ce
Upgrades black to v23, upgrades ruff
2023-04-26 09:35:27 -07:00
Trenton H
3bcbd05252
Fixes ruff not running isort against the codebase
2023-04-26 09:35:27 -07:00
Jonas Winkler
c87ca25f22
fix database locked error
2023-03-03 23:30:12 +01:00
Michael Shamoon
737f00df3a
Fix bulk setting null owner / permissions
2022-12-14 00:47:54 -08:00
Michael Shamoon
6dc5c1de32
Support bulk edit owner
2022-12-09 17:51:01 -08:00
Michael Shamoon
6ece5240a5
Bulk edit permissions
2022-12-08 02:03:50 -08:00
Trenton Holmes
9247300230
Transitions the backend to celery and celery beat
2022-09-26 11:25:34 -07:00
Trenton Holmes
ab761e837c
Implements a better re-do of OCR by making the document archiver function common. Actually creates updated file now
2022-08-21 18:20:59 -07:00
Michael Shamoon
c9bdf1c184
Frontend UI for redo OCR
2022-07-02 08:39:09 -07:00
Markus
69ef26dab0
Feature: Dynamic document storage pathes ( #916 )
...
* Added devcontainer
* Add feature storage pathes
* Exclude tests and add versioning
* Check escaping
* Check escaping
* Check quoting
* Echo
* Escape
* Escape :
* Double escape \
* Escaping
* Remove if
* Escape colon
* Missing \
* Esacpe :
* Escape all
* test
* Remove sed
* Fix exclude
* Remove SED command
* Add LD_LIBRARY_PATH
* Adjusted to v1.7
* Updated test-cases
* Remove devcontainer
* Removed internal build-file
* Run pre-commit
* Corrected flak8 error
* Adjusted to v1.7
* Updated test-cases
* Corrected flak8 error
* Adjusted to new plural translations
* Small adjustments due to code-review backend
* Adjusted line-break
* Removed PAPERLESS prefix from settings variables
* Corrected style change due to search+replace
* First documentation draft
* Revert changes to Pipfile
* Add sphinx-autobuild with keep-outdated
* Revert merge error that results in wrong storage path is evaluated
* Adjust styles of generated files ...
* Adds additional testing to cover dynamic storage path functionality
* Remove unnecessary condition
* Add hint to edit storage path dialog
* Correct spelling of pathes to paths
* Minor documentation tweaks
* Minor typo
* improving wrapping of filter editor buttons with new storage path button
* Update .gitignore
* Fix select border radius in non input-groups
* Better storage path edit hint
* Add note to edit storage path dialog re document_renamer
* Add note to bulk edit storage path re document_renamer
* Rename FILTER_STORAGE_DIRECTORY to PATH
* Fix broken filter rule parsing
* Show default storage if unspecified
* Remove note re storage path on bulk edit
* Add basic validation of filename variables
Co-authored-by: Markus Kling <markus@markus-kling.net >
Co-authored-by: Trenton Holmes <holmes.trenton@gmail.com >
Co-authored-by: Michael Shamoon <4887959+shamoon@users.noreply.github.com >
Co-authored-by: Quinn Casey <quinn@quinncasey.com >
2022-05-19 14:42:25 -07:00
Trenton Holmes
1771d18a21
Runs the pre-commit hooks over all the Python files
2022-03-11 11:34:28 -08:00
kpj
fc695896dd
Format Python code with black
2022-02-27 15:26:41 +01:00