Commit Graph

537 Commits

Author SHA1 Message Date
shamoon 077abbe961 Return user first & last name from backend 2023-06-12 08:15:59 -07:00
Trenton H 45d8c945e2 Small improvements to coverage 2023-06-06 13:18:13 -07:00
Trenton H 2c1cd25be4 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
jayme-github 97cd06d2ba 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 243598ae50 Exclude consumer & AnonymousUser users from export manifest 2023-05-30 20:51:25 -07:00
shamoon 30316179a0 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
jayme-github 6542d75a6a 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 c6900c5d51 prevent date suggestion search if disabled 2023-05-27 10:51:30 -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
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 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 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 df203311fe Fix note sorting, testing, bump search index version 2023-05-04 02:07:48 -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 1a1cf49c67 Testing for whoosh support for multi-object query vars 2023-04-27 08:47:36 -07:00
shamoon 88a5a2049b Dont perform permissions queries by default 2023-04-27 07:06:49 -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
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 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
Trenton H 66929a9088 Merge remote-tracking branch 'origin/dev' into feature-multiple-barcode-scanners 2023-03-29 09:40:10 -07:00
Trenton H 0778c2808b Instead of using PIL directly to convert TIFF to PDF, use the existing library of img2pdf 2023-03-20 13:48:05 -07:00
Marvin Gaube 567a1bb770 fix: skip tiff tests for zxing 2023-03-20 20:59:59 +01:00
shamoon 6a34a35585 Merge pull request #2910 from paperless-ngx/feature-improved-statistics-widget
Feature: Improved statistics widget
2023-03-19 23:34:19 -07:00
Marvin Gaube e89c0f15dd feature: Add support for zxing as barcode scanning lib 2023-03-19 13:48:35 +01:00
shamoon bf8ae22f3f Rename comments --> notes 2023-03-18 13:59:17 -07:00
shamoon f3eedec402 Improved statistics widget 2023-03-18 01:51:18 -07:00
Trenton Holmes 97ff2e126c Adds owner and original name to the possible naming schemes 2023-03-12 15:29:58 -07:00
Trenton H 5e7b93d153 Comment up the testing a bit more 2023-03-09 08:43:31 -08:00
shamoon c4ac35164b API should 400 on unique violations 2023-03-08 20:16:21 -08:00
shamoon 29251b6e38 Add test coverage for owner-aware unique constraints 2023-03-08 19:07:32 -08:00
Trenton H 41bcfcaffe Changes out the settings and a decent amount of test code to be pathlib compatible 2023-03-06 09:16:07 -08:00