1805 Commits

Author SHA1 Message Date
shamoon
313e49612c Fix: unable to assign null select custom fields 2024-07-09 11:27:30 -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
shamoon
30fdf2f387 Feature: automatic sso redirect (#7168) 2024-07-08 22:38:23 +00:00
shamoon
72c27955dd Fix: include documents in trash for existing asn check (#7189) 2024-07-08 16:28:40 +00:00
Trenton H
6f3bc54c41 Chore: Initial conversion to pytest fixtures (#7110) 2024-07-08 07:46:20 -07:00
shamoon
099e4e0416 Fix: editing of existing custom fields violates throws unique error 2024-07-06 13:05:20 -07:00
shamoon
e88e517d65 Fix: dont exclude documents in trash from sanity check (#7133) 2024-07-01 13:47:05 -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
dc8e73c0e2 Fix: dont include documents in trash in counts (#7111) 2024-06-26 19:30:12 -07:00
shamoon
35b9f23b04 Fix: use temp dir for split / merge (#7105) 2024-06-26 10:46:59 -07:00
shamoon
adc035148b Fix: always update document modified property on bulk edit operations (#7079) 2024-06-23 12:11:24 -07:00
shamoon
fc71d635a8 Fix: index fresh document data after update archive file (#7057) 2024-06-21 18:33:01 +00:00
Trenton H
1cd45b322b Prefer the metadata JSON file over the version JSON file (#7048) 2024-06-20 12:49:54 -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
Felix Eckhofer
9f9bf4d302 Fix: Revert masking the content field in auditlog (#6981) 2024-06-12 06:34:49 -07:00
shamoon
8d4c83353d Fix: respect model permissions for ui_settings API endpoint 2024-06-11 01:00:25 -07:00
shamoon
692c07a238 Fix: respect model permissions for tasks API endpoint (#6958) 2024-06-11 00:51:18 -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
shamoon
0abcb56f71 Enhancement: dont require document model permissions for notes (#6913) 2024-06-08 01:23:45 +00: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
7f6286e743 Change: rename redo OCR to reprocess (#6866) 2024-05-31 18:41:52 +00:00
Trenton H
2cc5b7b766 Refresh the document instance before doing workflow work, in case some other process has updated it (#6849) 2024-05-28 12:56:40 -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
shamoon
aa0f1cae2c Enhancement: support custom logo / title on login page (#6775) 2024-05-20 09:40:19 -07: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
Daniel
c93b095588 Enhancement: display current ASN in statistics (#6692) 2024-05-12 16:58:04 -07: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
Trenton H
8b215af7e7 Moves additional auditlog imports into protected blocks (#6638) 2024-05-08 09:04:32 -07:00
shamoon
0e03be895c Fix: make backend monetary validation accept unpadded decimals (#6626) 2024-05-07 21:38:52 +00:00
shamoon
90c0ac004e Fix: allow bulk edit with existing fields (#6625) 2024-05-07 14:26:07 -07:00
shamoon
fb7b65d851 Fix: dont use limit in subqueries for mariadb compatibility (#6611) 2024-05-07 15:14:00 +00:00
shamoon
b607c68661 Fix: correct admin permissions check for system status 2024-05-06 12:58:57 -07:00
shamoon
08da0f661e Feature: global search, keyboard shortcuts / hotkey support (#6449) 2024-05-02 16:15:56 +00:00
Trenton H
45104eb538 Handcrafts SQL queries a little more to reduce the query count and/or the amount of returned data (#6489) 2024-04-30 07:37:09 -07:00
shamoon
40b81c77e8 Feature: custom fields filtering & bulk editing (#6484) 2024-04-26 15:10:03 -07:00
shamoon
bcf8db0ad7 Feature: customizable fields display for documents, saved views & dashboard widgets (#6439) 2024-04-26 06:41:12 -07:00
shamoon
3a8793b1c0 Fix: cast custom fields values list to list for other DB types
Closes #6482
2024-04-24 01:35:45 -07:00
shamoon
77752ec0a7 Feature: document history (audit log UI) (#6388) 2024-04-23 15:16:28 +00:00
shamoon
053ed4a0f8 Fix: always check workflow filter_mailrule if set (#6474) 2024-04-23 07:37:14 -07:00