74 Commits

Author SHA1 Message Date
Michael Shamoon
3c186f19ac python tests for tasks api endpoints 2022-06-17 23:11:29 -04:00
Michael Shamoon
8141b5d58d Update tasks e2e tests to cypress 10
and remove debug print
2022-06-08 19:57:34 -07:00
Michael Shamoon
44782ee2da Use pre_execute signal to specify started vs queued 2022-06-06 01:39:45 -07:00
Michael Shamoon
90cd6950b2 update post_save signal receiver 2022-05-26 21:09:04 -07:00
Michael Shamoon
60ddd4a529 PaperlessTask and consumption_tasks endpoint 2022-05-26 21:05:24 -07:00
Markus
dd3b5c129c 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
Florian Brandes
995cbc0fe8 uses shutil.move instead of rename
fixes issues with cross-filesystem movement

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-04-02 07:23:31 +02:00
Trenton Holmes
6635fa5f0d Runs the pre-commit hooks over all the Python files 2022-03-11 11:34:28 -08:00
kpj
c56cb25b5f Format Python code with black 2022-02-27 15:26:41 +01:00
shamoon
96b6c94e42 Merge pull request #24 from tribut/feature-trash
Add temporary "delete to trash" functionality
2022-02-21 11:19:57 -08:00
Felix E
f716104576 Fix typo (#110) 2022-02-20 15:57:26 +01:00
Felix Eckhofer
9a357d18b9 Catch exception during trash-move 2022-02-20 14:17:13 +01:00
Felix Eckhofer
a98033a675 Explain file-rename logic 2022-02-20 14:17:13 +01:00
Felix Eckhofer
feed3ddfcf Add PAPERLESS_TRASH_DIR
When set, original files are moved here instead of being permanently
removed when a document is deleted.
2021-08-24 12:50:13 +02:00
Stéphane Brunner
b1c48bc20f Add suggest 2021-05-30 14:50:29 +02:00
Jonas Winkler
dc565bd035 correct file mode 2021-05-16 01:22:51 +02:00
jonaswinkler
1aba755d6f better logging for the retagger 2021-04-10 14:38:39 +02:00
jonaswinkler
d1f206b4cd some search index optimizations 2021-02-15 13:26:36 +01:00
jonaswinkler
8196208632 fix test case 2021-02-12 01:31:50 +01:00
jonaswinkler
b90a5f625a update file renaming logic 2021-02-11 13:47:17 +01:00
jonaswinkler
8b6700a138 imports 2021-02-09 19:46:42 +01:00
jonaswinkler
7cdc867307 archive filenames are now stored in the database and checked for collisions just as original filenames as well, unified method for archive version checking 2021-02-09 19:46:19 +01:00
jonaswinkler
e5a7dc0cc7 rework most of the logging 2021-02-05 01:10:29 +01:00
jonaswinkler
91492883b9 fixes #161 2021-01-13 17:17:23 +01:00
jonaswinkler
804e65f553 fix #236 2021-01-01 23:27:55 +01:00
jonaswinkler
d07241ea31 improve file renaming speed. 2020-12-30 17:17:36 +01:00
jonaswinkler
2bd9bb0d9c made a serious mistake. fixed. 2020-12-12 02:06:43 +01:00
jonaswinkler
23354f8a00 fixes #125 2020-12-12 01:19:22 +01:00
jonaswinkler
206145461f locking media directory while deleting files 2020-12-09 22:17:23 +01:00
jonaswinkler
ba7bf9b2d2 removed slugs entirely, since their only purpose was purely cosmetic anyway. 2020-12-09 00:04:37 +01:00
jonaswinkler
638113864f fixes #90 2020-12-08 13:54:49 +01:00
jonaswinkler
7f1671ac2d changed the way public filenames (i.e., for download and exporting) are generated. #94 2020-12-06 19:03:45 +01:00
jonaswinkler
1d073d2cfd a couple fixes and more supported image files 2020-12-02 17:39:49 +01:00
jonaswinkler
daf2e345c4 code style 2020-12-01 14:33:37 +01:00
jonaswinkler
f08d494f1b filename handling for archive files. 2020-11-30 21:38:42 +01:00
jonaswinkler
ddb3ef49f6 Merge branch 'dev' into feature-ocrmypdf 2020-11-29 18:37:38 +01:00
jonaswinkler
0e9d88ef7d test cases for #67 2020-11-29 15:47:56 +01:00
jonaswinkler
56d4843a96 Merge branch 'dev' into feature-ocrmypdf 2020-11-29 01:35:37 +01:00
jonaswinkler
906fe4a68d fixes #61 2020-11-28 19:28:46 +01:00
Jonas Winkler
17b62b61fa add support for archive files. 2020-11-25 14:47:17 +01:00
Jonas Winkler
afc3753e58 code cleanup 2020-11-21 14:03:45 +01:00
Jonas Winkler
8b8a2af053 fixed the file handling implementation. The feature is cool, but the original implementation had so many small flaws it wasn't even funny. 2020-11-11 14:21:33 +01:00
Jonas Winkler
ec1f65a355 I removed the model save/delete hooks for index updates since they were causing too much trouble with migrations 2020-11-08 11:24:57 +01:00
Jonas Winkler
5686f76ef2 this was not required since saving a document updates the index anyway 2020-11-03 13:51:49 +01:00
Jonas Winkler
9a4ff3f807 replaced usages of .id with .pk, fixed filename issue in exporter 2020-11-03 12:37:37 +01:00
Jonas Winkler
048ff1de95 fixed unnecessary assignation of correspondents / types to documents 2020-11-02 19:27:24 +01:00
Jonas Winkler
a89773ad71 removed unused code, small fixes 2020-11-02 18:20:04 +01:00
Jonas Winkler
def3a85858 reworked most of the tesseract parser, better logging 2020-11-02 15:40:44 +01:00
Jonas Winkler
dd16b7262e unified document matching, legacy and automatching work alongside now 2020-10-28 11:45:11 +01:00
Jonas Winkler
368b6d0512 removed some obsolete fields from the document model 2020-10-28 01:41:18 +01:00