80 Commits

Author SHA1 Message Date
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
shamoon
3ccf143c0b Merge pull request #721 from paperless-ngx/bug-fix-date-ignore
Fix Ignore Date Parsing
2022-05-10 16:45:58 -07:00
Trenton Holmes
a944ef1ca6 Adds additional testing for both date parsing and consumed document created date 2022-05-08 16:57:35 -07:00
Trenton Holmes
f62193099c Runs pyupgrade to Python 3.8+ and adds a hook for it 2022-05-06 09:04:08 -07:00
Trenton Holmes
5a4741dcab Bumps django to 4.0 and fixes associated issues 2022-03-24 07:39:11 -07:00
Simon Siebert
58fbfb2e17 Fixing Test 2022-03-14 19:03:09 +01:00
Simon Siebert
4bdbf98c64 Fixing code formating 2022-03-14 19:03:09 +01:00
Simon Siebert
5aea4da8b2 Update parsers.py and test_consumer.py 2022-03-14 19:03:09 +01: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
jonaswinkler
56bbe644b8 codestyle 2021-05-19 20:26:12 +02:00
jonaswinkler
5d5afb210a delete macOS specific files 2021-05-19 20:02:47 +02:00
jonaswinkler
b04d91d68c fix a bug with thumbnail generation when TIKA was enabled 2021-02-09 22:12:43 +01:00
jonaswinkler
866d6f814d update all test cases to address the archive filename changes 2021-02-09 19:51:16 +01:00
jonaswinkler
4a7ccd1bae another way to make the test case fail 2021-02-09 02:13:25 +01:00
jonaswinkler
d5ecc5c8e5 make the test case fail 2021-02-07 19:53:08 +01:00
jonaswinkler
817bb299a9 added a test case that replicates #511 2021-02-07 18:23:54 +01:00
jonaswinkler
fce76d0671 Merge branch 'dev' into feature-websockets-status 2021-01-30 16:08:50 +01:00
jonaswinkler
a37e41ef0c centralized classifier loading, better error handling, no error messages when auto matching is not used 2021-01-30 14:22:23 +01:00
jonaswinkler
00cdd2b59b test cases 2021-01-28 19:28:48 +01:00
jonaswinkler
40f58e0b79 fix test cases 2021-01-26 15:26:25 +01:00
jonaswinkler
c0f185fe7e bug fixes, test case fixes 2021-01-26 15:19:56 +01:00
jonaswinkler
5ac567d300 tests for pre and post consume script 2021-01-06 14:08:44 +01:00
jonaswinkler
73638b626c fix test case 2021-01-02 15:52:02 +01:00
jonaswinkler
804e65f553 fix #236 2021-01-01 23:27:55 +01:00
jonaswinkler
755f950cd2 supply file_name for tika parser 2021-01-01 22:19:43 +01:00
jonaswinkler
b70f7ca8f3 fix test case. 2020-12-27 14:50:57 +01:00
jonaswinkler
bd0c9721c4 removed most of the logic that extracts data from filename patterns #156 2020-12-20 00:08:05 +01:00
jonaswinkler
a8747f6bc0 test CONSUMER_DELETE_DUPLICATES 2020-12-20 00:06:33 +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
655ce81cb6 changes to filename generation, partially addresses #90 2020-12-06 16:13:37 +01:00
jonaswinkler
e4eeb29f54 checking file types against parsers in the consumer. 2020-12-01 15:26:05 +01:00
jonaswinkler
e528a8446e Merge branch 'dev' into feature-ocrmypdf 2020-11-30 23:53:19 +01:00
jonaswinkler
5af70f4dad more testing. 2020-11-30 22:04:25 +01:00
jonaswinkler
1df64e3129 Merge branch 'dev' into feature-ocrmypdf 2020-11-30 16:48:09 +01:00
jonaswinkler
7658c07b4d added file type checks to the parsers to prevent temporary files from being consumed. Also: parsers announce file types they wish to use as default for each mime type. 2020-11-30 00:40:04 +01:00
jonaswinkler
cb959e296a more tests! 2020-11-29 19:22:49 +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
7bba3065fe Merge branch 'dev' into feature-ocrmypdf 2020-11-27 14:03:19 +01:00
jonaswinkler
d2e919849a refactored the test cases to use a mixin for setting up temporary directories. 2020-11-27 14:00:41 +01:00
jonaswinkler
72b4f817df moved consumption dir check into the correct spot 2020-11-27 13:12:13 +01:00
jonaswinkler
2b1c11503a Pipfile.lock post merge 2020-11-27 00:10:40 +01:00
jonaswinkler
3daee6b5b5 Merge branch 'dev' into feature-ocrmypdf 2020-11-27 00:06:20 +01:00
jonaswinkler
4ab7577069 improved test cases. Python 3.6 compatibility. 2020-11-26 22:17:14 +01:00
Jonas Winkler
c00c63c639 fixed the test cases 2020-11-25 19:51:09 +01:00
Jonas Winkler
fc0ba2098a FileType does not care about the extension anymore. 2020-11-20 16:18:59 +01:00
Jonas Winkler
f976a0b4ba mime type handling 2020-11-20 13:31:03 +01:00
Jonas Winkler
8c40c54421 codestyle 2020-11-18 22:41:14 +01:00