shamoon
f27f25aa03
Enhancement: support assigning custom fields via consumption templates ( #4727 )
2023-12-03 15:35:30 -08:00
Trenton H
8d60506884
Standarizes the imports across all the files and modules ( #4248 )
2023-09-23 20:17:01 -07:00
shamoon
9712ac109d
Feature: consumption templates ( #4196 )
...
* Initial implementation of consumption templates
* Frontend implementation of consumption templates
Testing
* Support consumption template source
* order templates, automatically add permissions
* Support title assignment in consumption templates
* Refactoring, filters to and, show sources on list
Show sources on template list, update some translation strings
Make filters and
minor testing
* Update strings
* Only update django-multiselectfield
* Basic docs, document some methods
* Improve testing coverage, template multi-assignment merges
2023-09-22 16:53:13 -07:00
Trenton Holmes
650c816a7b
Removes support for Python 3.8 and lower from the code base
2023-09-10 11:42:59 -07:00
Trenton H
714995877a
Merge pull request #4037 from andreheuer/dev
...
Enhancement: add task id to pre/post consume script as env
2023-09-08 10:00:05 -07:00
shamoon
61566a34d1
Fix consumer error typo
2023-09-01 00:11:32 -07:00
shamoon
e14f4c94c2
Fix: ghostscript rendering error doesnt trigger frontend failure message ( #4092 )
...
* Raise ParseError from gs rendering error
* catch all parser errors as generic exception
* Differentiate generic vs parse errors during consumption
2023-08-31 19:49:00 -07:00
André Heuer
88ee3bdb6d
Removed parameter, added documentation
2023-08-29 23:09:47 -07:00
André Heuer
8f8a99a645
Added task id to pre/post consume script as env
2023-08-29 23:09:47 -07:00
Trenton Holmes
07e7bcd30b
Small improvement to the consumer status with stronger typing
2023-07-26 07:03:43 -07:00
Trenton H
802e5591ce
Also handles confirming returned predictions are still automatic matching, in case the classifier hasn't been run since a type was changed
2023-07-24 12:31:56 -07:00
Trenton H
452c79f9a1
Improves the logging mixin and allows it to be typed better
2023-05-23 17:16:39 -07: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
Trenton H
ce41ac9158
Configures ruff as the one stop linter and resolves warnings it raised
2023-04-01 17:03:52 -07:00
Trenton Holmes
0df91c31f1
Creates a mix-in for asserting file system states
2023-02-20 10:25:21 -08:00
Trenton Holmes
3e777f2a5b
Fixes up some minor warnings from test code
2023-02-11 14:35:16 -08:00
Trenton H
7dd9a4e089
Changes the consumer to work on a temporary copy and provies that copy to the pre-consume script for modifications
2023-01-29 08:37:32 -08:00
Trenton H
6ff28c92a4
Resolves minor flake8 warnings in the test suite
2023-01-05 08:39:48 -08:00
Trenton H
057f6016cc
Adds further testing to cover scripts with non-zero exit codes
2022-11-11 08:58:49 -08:00
Trenton Holmes
9a47963fd5
Captures the stdout and stderr of the pre/post scripts into the log
2022-11-10 17:26:47 -08:00
Trenton H
7e3e0a0fa6
Refresh the instance from the database before doing any file handling with it
2022-11-03 11:32:27 -07:00
Trenton Holmes
1df517afd3
Removes last vestiges of PNG from the tests, code, docs and samples
2022-06-11 14:20:50 -07:00
Trenton Holmes
e8868d7ebf
Entirely removes the optipng, updates ghostscript fall back to also use WebP. Updates the conversion to use a multiprocessing pool
2022-06-11 08:38:49 -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
shamoon
536576518e
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
8a6aaf4e2d
Adds additional testing for both date parsing and consumed document created date
2022-05-08 16:57:35 -07:00
Trenton Holmes
3003bdd507
Runs pyupgrade to Python 3.8+ and adds a hook for it
2022-05-06 09:04:08 -07:00
Trenton Holmes
78258eb9cb
Bumps django to 4.0 and fixes associated issues
2022-03-24 07:39:11 -07:00
Simon Siebert
1abd7cc2a0
Fixing Test
2022-03-14 19:03:09 +01:00
Simon Siebert
78608d92b4
Fixing code formating
2022-03-14 19:03:09 +01:00
Simon Siebert
54cbacf4f4
Update parsers.py and test_consumer.py
2022-03-14 19:03:09 +01: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
jonaswinkler
80ba5b561f
codestyle
2021-05-19 20:26:12 +02:00
jonaswinkler
93a79be1e2
delete macOS specific files
2021-05-19 20:02:47 +02:00
jonaswinkler
8d6071e977
fix a bug with thumbnail generation when TIKA was enabled
2021-02-09 22:12:43 +01:00
jonaswinkler
d13e86a892
update all test cases to address the archive filename changes
2021-02-09 19:51:16 +01:00
jonaswinkler
05f59e7d5e
another way to make the test case fail
2021-02-09 02:13:25 +01:00
jonaswinkler
61143b3ad1
make the test case fail
2021-02-07 19:53:08 +01:00
jonaswinkler
731418349f
added a test case that replicates #511
2021-02-07 18:23:54 +01:00
jonaswinkler
46ea86a6d2
Merge branch 'dev' into feature-websockets-status
2021-01-30 16:08:50 +01:00
jonaswinkler
87a18eae2d
centralized classifier loading, better error handling, no error messages when auto matching is not used
2021-01-30 14:22:23 +01:00
jonaswinkler
94be8781e9
test cases
2021-01-28 19:28:48 +01:00
jonaswinkler
313f2886d7
fix test cases
2021-01-26 15:26:25 +01:00
jonaswinkler
868fd4155a
bug fixes, test case fixes
2021-01-26 15:19:56 +01:00
jonaswinkler
f373211281
tests for pre and post consume script
2021-01-06 14:08:44 +01:00
jonaswinkler
57f77c4657
fix test case
2021-01-02 15:52:02 +01:00
jonaswinkler
4b74cd5677
fix #236
2021-01-01 23:27:55 +01:00
jonaswinkler
40ef375c15
supply file_name for tika parser
2021-01-01 22:19:43 +01:00