shamoon
eded8932b7
Update bootstrap to v5.3.1 for backend static pages
2023-09-08 09:08:23 -07:00
shamoon
516d1fcb38
Fix consumer error typo
2023-09-01 00:11:32 -07:00
shamoon
9ed9dbb369
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
Trenton Holmes
9b08b954a0
Do some trickery to support Python 3.11 and mocking invalid module names
2023-08-25 08:44:09 -07:00
shamoon
1837110fff
Fix: enforce permissions on bulk_edit operations
2023-08-17 00:12:46 -07:00
shamoon
570d7d38fb
Restrict status messages by owner if set
2023-08-08 20:39:55 -07:00
shamoon
025fbe4d2a
Note creation / deletion should respect doc permissions
...
- Disable add note button on frontend
- Explicitly disable add / delete via api
2023-08-01 22:28:27 -07:00
brainrecursion
b6afccd8cd
Remove debug
2023-07-30 08:34:33 -07:00
brainrecursion
03543a6a5d
Add additional test for date parsing
2023-07-30 08:34:33 -07:00
brainrecursion
7900d31485
Add support for more date formats
2023-07-30 08:34:33 -07:00
mechanarchy
43fe6ef3a4
Add 'doc_pk' to PAPERLESS_FILENAME_FORMAT handling ( #3861 )
...
* Add 'doc_pk' to PAPERLESS_FILENAME_FORMAT handling
* Add test for 'doc_pk' filename formatter
2023-07-30 08:30:50 -07:00
Trenton Holmes
e01eb0768c
Adding more typing around the classification and matching
2023-07-26 07:03:43 -07:00
Trenton Holmes
41839728fe
Small improvement to the consumer status with stronger typing
2023-07-26 07:03:43 -07:00
Trenton H
f05d58827d
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
0640f571a8
Handles a special case where the classification model exists, but no items are auto matching any longer
2023-07-24 12:31:56 -07:00
Dennis Brakhane
ef749f9a29
Feature: collate two single-sided multipage scans ( #3784 )
...
* Feature: collate two single-sided scans
Some ADF only support single-sided scans, making scanning
double-sided documents a bit annoying.
This new feature enables Paperless to do most of the work,
by merging two seperate scans into a single one, collating
the even and odd numbered pages.
* Documentation: clarify that collation is disabled by default
* Apply suggestions from code review
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
* Address code review remarks
* Grammar fixes
---------
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2023-07-24 00:29:04 -07:00
Trenton H
e160580c8b
Fixes issues with copy2 or copystat and SELinux see #3665
2023-07-22 06:27:49 -07:00
Trenton H
dbcf040dde
Updates some Python dependencies and the hooks
2023-07-20 18:30:11 -07:00
shamoon
bd9cd14fd9
Merge pull request #3672 from paperless-ngx/feature-permissions-exportimport
...
Feature: include global and object-level permissions in export / import
2023-07-20 11:40:53 -07:00
Trenton H
f87bb2e575
Fixes the barcode setting always overriding the ASN, even if one wasn't found
2023-07-19 18:10:38 -07:00
shamoon
fa75781c34
Migrate encrypted png thumbnails to webp
2023-06-29 13:21:15 -07:00
shamoon
35285b35df
Adding explicit doc permissions test
2023-06-27 10:53:48 -07:00
Bastian Machek
324e30bd4b
Feature: support barcode upscaling for better detection of small barcodes ( #3655 )
2023-06-27 10:18:47 -07:00
shamoon
b7d99ab8f3
Fix owner removed when set_permissions passed
2023-06-27 01:41:20 -07:00
shamoon
6e9be0ba9b
Include global and object-level permissions in export / import
...
adds test for transaction
2023-06-23 23:33:36 -07:00
Trenton H
9bc0f1e367
Ignore errors when trying to copy the original file's stats
2023-06-21 07:54:27 -07:00
Johannes Plunien
9ae703f63e
Add test for not moving default thumbnail
...
See also #3632 and #3631
2023-06-20 20:54:15 +02:00
Johannes Plunien
3a58a5f123
Copy default thumbnail if thumbnail generation fails
...
Fix #3631
2023-06-20 11:28:46 -07:00
Trenton H
4504668cb2
Let ruff autofix some things from the newest version
2023-06-13 20:15:18 -07:00
shamoon
7abb927625
Return user first & last name from backend
2023-06-12 08:15:59 -07:00
Trenton H
e83be2e540
In cases where a temporary file is created or used, copy the original file stats to it
2023-06-07 09:02:19 -07:00
Trenton H
a12e1b351a
Small improvements to coverage
2023-06-06 13:18:13 -07:00
Trenton H
1b3492a01f
Rewrites the email parsing to be more clear and concise.
...
Adds testing to use httpx mocked responses to stand in as a server even offline
2023-06-06 09:05:26 -07:00
shamoon
3dac2d9b41
Update index.py
2023-06-04 10:41:45 -07:00
jayme-github
16a0a7c73a
Feature: Allow to filter documents by original filename and checksum ( #3485 )
...
* Allow to filter documents by original filename and checksum
This adds filters for the original filename and checksum of documents to
be able to to lazy checks if the file is already stored in paperless.
* Add tests for DelayedQuery
* Add checksum and original_filename to whoosh index and DelayedQuery
* Refactored DelayedQuery to reduce duplicate code
* Choose icontains for checksums as whoosh has no exact match query term
* Bumped index version
* Revert whoosh filtering logic to simpler structure, remove redundant tests
Revert "Revert whoosh filtering logic to simpler structure, remove redundant tests"
This reverts commit 86792174bfbc697f42b72c4b39ee9eba483bb425.
---------
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2023-06-04 10:34:27 -07:00
shamoon
2b9d30cb68
Exclude consumer & AnonymousUser users from export manifest
2023-05-30 20:51:25 -07:00
shamoon
f425fe9d62
Merge pull request #3472 from paperless-ngx/fix-disable-date-suggestions
...
Fix: prevent date suggestion search if disabled
2023-05-30 07:48:03 -07:00
shamoon
5a52957aa9
Merge pull request #3473 from jayme-github/fix_original_filename
...
Make DocumentSerializer return the original_filename
2023-05-27 12:50:07 -07:00
jayme-github
47c8cf2afa
Make DocumentSerializer return the original_filename
...
Make get_original_file_name return the original filename instead of the
public filename.
2023-05-27 21:35:58 +02:00
shamoon
b294153ef5
prevent date suggestion search if disabled
2023-05-27 10:51:30 -07:00
chrisblech
d5db39d553
consumer.py: read create_date
from original file (instead of temp copy)
...
In line 328, `self.path` is set to a fresh written copy of the source file. This copy has a different timestamp (=now).
When using the source file's timestamp as `create_date`, it makes much more sense to ask for the timestamp from `self.original_path`
2023-05-26 14:16:27 -07:00
Trenton H
f7e6361206
Just in case, catch a sometimes nltk error and return the basic processed content instead
2023-05-24 19:34:49 -07:00
Trenton H
bad8d304cb
Improves the logging mixin and allows it to be typed better
2023-05-23 17:16:39 -07:00
Trenton H
1396f25419
Updates handling of barcodes to encapsulate logic, moving it out of tasks and into barcodes
2023-05-22 06:52:31 -07:00
Trenton Holmes
2f12206911
Changes the error mode to replace instead of ignore, to better highlight where a problem happened
2023-05-13 09:29:18 -07:00
Trenton H
6722b6e31c
Adds better handling for files with invalid utf8 content
2023-05-13 09:29:18 -07:00
shamoon
5a579ccf1c
Merge pull request #3359 from paperless-ngx/feature-fix-autocomplete-respect-perms
...
Fix: respect permissions for autocomplete suggestions
2023-05-12 13:35:45 -07:00
shamoon
4a0d6c733d
Respect permissions for autocomplete suggestions
2023-05-11 14:43:25 -07:00
shamoon
da8021045b
Resolve CodeQL warnings
2023-05-11 12:56:01 -07:00
shamoon
0cfb436e57
Merge pull request #3309 from paperless-ngx/feature-owner-filtering
...
Feature: owner filtering
2023-05-11 10:05:51 -07:00