chrisblech
3ab2892066
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
c1641f6fb8
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
452c79f9a1
Improves the logging mixin and allows it to be typed better
2023-05-23 17:16:39 -07:00
Trenton H
07e07fc7e8
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
3205d52331
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
111960c530
Adds better handling for files with invalid utf8 content
2023-05-13 09:29:18 -07:00
shamoon
350c20d6ab
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
66a0783e7b
Respect permissions for autocomplete suggestions
2023-05-11 14:43:25 -07:00
shamoon
311c0ba4f1
Resolve CodeQL warnings
2023-05-11 12:56:01 -07:00
shamoon
09086e574d
Merge pull request #3309 from paperless-ngx/feature-owner-filtering
...
Feature: owner filtering
2023-05-11 10:05:51 -07:00
shamoon
b802f3a71f
Merge pull request #3329 from paperless-ngx/feature-full-dynamic-counts
...
Enhancement: dynamic counts include all pages, hide for "Any"
2023-05-10 11:15:47 -07:00
shamoon
f78f212a77
Merge pull request #3347 from paperless-ngx/fix/issue-3346
...
Fix: default frontend to current owner, allow setting no owner on create
2023-05-10 08:18:08 -07:00
shamoon
515146d4a2
Default frontend to current owner, allow setting no owner on create
2023-05-09 19:53:34 -07:00
shamoon
b7540fab58
Apply code suggestions
...
Co-Authored-By: Trenton H <797416+stumpylog@users.noreply.github.com>
2023-05-09 19:48:19 -07:00
shamoon
3c4dadd905
Re-work filter editor, bulk editor & reset buttons
2023-05-09 19:48:04 -07:00
shamoon
487d3a6262
Support owner API query vars
2023-05-08 15:34:14 -07:00
shamoon
5b6956ff24
Merge pull request #3345 from paperless-ngx/fix/issue-3341
2023-05-08 07:04:49 -07:00
shamoon
b783d2e210
Fix PassUserMixin not properly being used in DocumentViewSet
2023-05-07 17:40:09 -07:00
shamoon
9a40a5f019
Add proper testing for *__id__in testing
2023-05-07 00:04:23 -07:00
shamoon
f124e2a889
Add "all" property to results
2023-05-06 11:31:47 -07:00
shamoon
c59420581c
Dynamic counts include all pages, hide for "Any"
2023-05-05 01:01:57 -07:00
shamoon
df203311fe
Fix note sorting, testing, bump search index version
2023-05-04 02:07:48 -07:00
shamoon
10f9b91c44
fix __in filtering
2023-05-04 02:07:16 -07:00
Trenton Holmes
b7577038a0
Replace usages of os.rename with shutil.move to properly handle cases where the source and dest arent't on the same filesystem
2023-05-01 07:28:52 -07:00
shamoon
e275a2736a
Respect superuser for advanced queries, test coverage for object perms
2023-04-27 15:51:34 -07:00
shamoon
deaff293d2
Merge pull request #3209 from paperless-ngx/fix/issue-3206
...
Fix: advanced search or date searching + doc type/correspondent/storage path broken
2023-04-27 10:09:20 -07:00
Moritz 'e1mo' Fromm
2674d4f034
Fix MixedContentTypeError in add_inbox_tags handler
...
The fact that Tags were fetched while the `view_documenttype` permission
was validated caused a MixedContentTypeError, thus the document
consumptio to fail because the list of available tags could not be
fetched.
2023-04-27 18:15:05 +02:00
shamoon
1a1cf49c67
Testing for whoosh support for multi-object query vars
2023-04-27 08:47:36 -07:00
shamoon
448dcbab46
Include multi object queries in whoosh searcher
2023-04-27 08:06:55 -07:00
shamoon
88a5a2049b
Dont perform permissions queries by default
2023-04-27 07:06:49 -07:00
shamoon
15fb3e5328
Remove debug line
2023-04-27 01:24:22 -07:00
shamoon
90b800b030
Merge pull request #3199 from paperless-ngx/fix/issue-3197
...
Fix: permissions-aware statistics
2023-04-26 10:47:18 -07:00
shamoon
dfadfc0f13
Respect permissions for statistics
2023-04-26 09:51:26 -07:00
shamoon
5ae48c8012
Use document owner for matching if set
2023-04-26 09:42:03 -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
shamoon
e0d2697618
Merge pull request #3174 from paperless-ngx/fix/issue-3172
...
Fix: respect permissions on document view actions
2023-04-26 09:10:58 -07:00
Trenton H
a2d4d16867
Make the importer a little more robust against some types of errors
2023-04-26 07:08:50 -07:00
shamoon
1fb03a755f
Respect permissions on document view actions
2023-04-25 22:49:37 -07:00
Trenton H
b34dfcd72f
Fixes StoragePath missing the owned or granted filter
2023-04-25 18:48:22 -07:00
shamoon
ffa116bf44
Merge branch 'main' into dev
2023-04-24 13:10:18 -07:00
shamoon
d1984c0dda
Update testing for ignore macOS directory services file
2023-04-18 19:10:03 -07:00
shamoon
52e8a1aba3
Include permissions for suggestions
2023-04-16 00:09:41 -07:00
shamoon
de5689f5b2
Update paperlesstask on hard consumption failures
2023-04-09 20:40:16 -07:00
Trenton Holmes
1b4020b3d7
Fixes barcode tests not running
2023-04-01 17:38:18 -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 H
3c2bbf244d
Creates a data model for the document consumption, allowing stronger typing of arguments and setting of some information about the file only once
2023-04-01 11:05:34 -07:00
shamoon
5bd06494d5
Use exclude instead of difference for mariadb
2023-03-31 13:52:06 -07:00
shamoon
62e756a11e
Merge pull request #2818 from paperless-ngx/fix-2809
...
Fix: permissions display should not show users with inherited permissions & unable to change owner
2023-03-30 19:49:12 -07:00
Trenton H
66929a9088
Merge remote-tracking branch 'origin/dev' into feature-multiple-barcode-scanners
2023-03-29 09:40:10 -07:00