716 Commits

Author SHA1 Message Date
Yichi Yang
fb36b50ec5 Fix: correctly handle "exists, false" in custom field query filter (#8158) 2024-11-02 18:40:50 -07:00
shamoon
559a48046a Fix: make mail account password and refresh token text fields (#8107) 2024-10-29 21:54:47 -07:00
shamoon
78d8f9a9ff Fix: correct serializing of auth tokens for export (#8100) 2024-10-29 17:02:32 +00:00
shamoon
d09dec8b53 Fix: allow removing dead document links from UI, validate via API (#8081) 2024-10-28 10:39:17 -07:00
shamoon
5fa436c9f0 Fix: handle uuid fields created under mariadb and Django 4 (#8034) 2024-10-28 13:54:16 +00:00
Trenton H
15db853c8a Fix: Update filename correctly if the document is in the trash (#8066)
* Fixes an issue where the filename is not updated if the document is in the trash (but the file is moved)
2024-10-28 02:45:31 +00:00
Trenton H
9ed98114b6 Handle a special case where the none marker exists in a way which could create an absolute path (#8060) 2024-10-28 01:51:07 +00:00
shamoon
077afd0593 Enhancement: auto-update document filenames with CF select fields (#8045) 2024-10-27 23:45:21 +00:00
shamoon
24c05dfe78 Enhancement / fix: include social accounts and api tokens in export (#8016) 2024-10-26 06:51:22 -07:00
Trenton H
87760d14ba Fix: Handling of Nones when using custom fields in filepath templating (#7933) 2024-10-15 17:54:15 +00:00
shamoon
b5686c9d2f Enhancement: support retain barcode split pages (#7912) 2024-10-13 20:51:39 -07:00
shamoon
0485472a07 Feature: OAuth2 Gmail and Outlook email support (#7866) 2024-10-10 20:57:32 +00:00
shamoon
b8111df963 Feature: live preview of storage path (#7870) 2024-10-09 23:35:36 +00:00
shamoon
dea0263309 Chore: fix test comments 2024-10-08 23:36:09 -07:00
Trenton H
ca1f21fcca Feature: Enhanced templating for filename format (#7836)
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-10-06 12:54:01 -07:00
shamoon
3507d297fa Enhancement: management list button improvements (#7848) 2024-10-03 23:00:28 -07:00
shamoon
b2e5406aae Feature: custom fields queries (#7761) 2024-10-03 00:15:42 +00:00
shamoon
ca08cc19fa Enhancement: disable-able mail rules, add toggle to overview (#7810) 2024-09-30 19:42:19 -07:00
Trenton H
e3bc680bf1 Chore: Drop Python 3.9 support (#7774) 2024-09-26 12:22:24 -07:00
shamoon
a3b4198408 Feature: auto-clean some invalid pdfs (#7651) 2024-09-25 15:57:20 +00:00
s0llvan
fd2bea0da9 Feature: page count (#7750)
---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-09-25 08:22:12 -07:00
shamoon
dd4ada2a38 Feature: Enhanced backend custom field search API (#7589)
commit 910dae8413028f647e6295f30207cb5d4fc6605d
Author: Yichi Yang <yiy067@ucsd.edu>
Date:   Wed Sep 4 12:47:19 2024 -0700

    Fix: correctly handle the case where custom_field_lookup refers to multiple fields

commit e43f70d708b7d6b445f3ca8c8bf9dbdf5ee26085
Author: Yichi Yang <yiy067@ucsd.edu>
Date:   Sat Aug 31 14:06:45 2024 -0700

Co-Authored-By: Yichi Yang <yichiyan@usc.edu>
2024-09-23 23:33:49 -07:00
shamoon
a0c8caca4e Fix: wait to apply tag changes until other changes saved with multiple workflows (#7711) 2024-09-16 01:26:24 +00:00
Yichi Yang
782bc2cec2 Refactor: Use django-filter logic for filtering full text search queries (#7507) 2024-08-24 21:20:43 -07:00
shamoon
0b22a10a71 Enhancement: allow specifying default currency for Monetary custom field (#7381) 2024-08-05 17:02:03 -07:00
shamoon
ae6ac7c24a Enhancement: log when pre-check fails for documents in trash (#7355) 2024-08-05 17:01:01 -07:00
shamoon
f798d387dd Fix: support multiple inbox tags from stats widget (#7281) 2024-07-22 10:07:51 -07:00
Trenton H
c9beff3425 Chore: Squash older automatic migrations (#7267) 2024-07-16 09:21:41 -07:00
shamoon
e07937647e Enhancement: support customfield filter for select type (#7199) 2024-07-09 10:54:34 -07:00
shamoon
5ffcc83f23 Chore: upgrade to DRF 3.15 (#7134) 2024-07-09 16:57:53 +00:00
shamoon
a38e341015 Feature: select custom field type (#7167) 2024-07-09 07:57:07 -07:00
Trenton H
6f3bc54c41 Chore: Initial conversion to pytest fixtures (#7110) 2024-07-08 07:46:20 -07:00
shamoon
a8df0c9ca4 Enhancement: use request user as owner of split / merge docs (#7112) 2024-06-27 13:46:49 -07:00
shamoon
a80f00721d Fix: handle errors for trash actions and only show documents user can restore or delete (#7119) 2024-06-27 20:33:39 +00:00
Fabien Dubuy
705671a93b Enhancement: improve date parsing with accented characters (#7100) 2024-06-26 20:47:37 -07:00
shamoon
adc035148b Fix: always update document modified property on bulk edit operations (#7079) 2024-06-23 12:11:24 -07:00
shamoon
e9ba6de03e Feature: documents trash aka soft delete (#6944) 2024-06-17 08:07:08 -07:00
martin f. krafft
4ed795a65f Fix: default order of documents gets lost in QuerySet pipeline (#6982)
* Send ordered document list to Django REST pagination

Currently, when pages of documents are requested from the API, the
webserver logs a warning:

```
gunicorn[1550]: /home/madduck/code/paperless-ngx/.direnv/python-3.11.2/lib/python3.11/site-packages/rest_framework/pagination.py:200: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'documents.models.Document'> QuerySet.
```

This can yield unexpected and problematic results, including duplicate
and missing IDs in the enumeration, as demonstrated in
https://github.com/paperless-ngx/paperless-ngx/discussions/6859

The patch is simple: turn the unordered Documents QuerySet into
one that's ordered by reverse creation date, which is the default
ordering for `Document`.

Note that the default ordering for `Document` means that
`QuerySet.ordered` is actually `True` following the call to
`distinct()`, but after `annotate()`, the flag changes to `False`,
unless `order_by()` is used explicitly, as per this patch.

Closes: https://github.com/paperless-ngx/paperless-ngx/discussions/6859

Signed-off-by: martin f. krafft <madduck@madduck.net>

* Ensure order of documents in permissions test

The patch for #6982 changes the ordering of documents returned by the
API, which was previously implicit, and is now explicit. Therefore,
this patch masssages the API result to ensure the previous order.

Signed-off-by: martin f. krafft <madduck@madduck.net>

---------

Signed-off-by: martin f. krafft <madduck@madduck.net>
2024-06-13 14:46:18 +00:00
Trenton H
131fd97655 Fix: Document history could include extra fields (#6989)
* Fixes creation of a custom field being included in a document's history even if not attached

* Show custom field creation in UI

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-06-12 16:23:47 -07:00
Trenton H
ada9ac7752 Feature: Allow encrypting sensitive fields in export (#6927)
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-06-09 14:41:18 +00:00
Dominik Bruhn
6377233f38 Enhancement: support delete originals after split / merge (#6935)
---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-06-08 11:29:03 -07:00
shamoon
3a82b1a0c8 Enhancement: unique mail rule names by owner 2024-06-08 11:29:03 -07:00
Trenton H
2d73a46666 Resolves test issues with Python 3.12 (#6902) 2024-06-03 12:33:46 -07:00
Trenton H
5bcd7c300f Feature: Allow a data only export/import cycle (#6871) 2024-06-01 18:22:59 -07:00
shamoon
55912df056 Enhancement: only include correspondent 'last_correspondence' if requested (#6792) 2024-05-22 23:15:58 +00:00
shamoon
7973085859 Enhancement: delete pages PDF action (#6772) 2024-05-22 23:01:15 +00:00
Trenton H
16584328f1 Chore: Change the code formatter to Ruff (#6756)
* Changing the formatting to ruff-format

* Replaces references to black to ruff or ruff format, removes black from dependencies
2024-05-18 02:26:50 +00:00
shamoon
8a28eaf96e Fix: only count inbox documents from inbox tags with permissions (#6670) 2024-05-10 09:00:37 -07:00
shamoon
76b60774ff Fix: correctly respect superuser for document history (#6661) 2024-05-09 19:27:59 +00:00
shamoon
0e03be895c Fix: make backend monetary validation accept unpadded decimals (#6626) 2024-05-07 21:38:52 +00:00