3172 Commits

Author SHA1 Message Date
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
3e910a935c Bump version to 2.10.1 2024-06-18 21:00:22 -07:00
github-actions[bot]
67ca0c85b3 New Crowdin translations by GitHub Action (#7027)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-06-18 20:59:28 -07:00
shamoon
5cb41c2fd4 Bump version to 2.10.0 2024-06-18 10:19:49 -07:00
github-actions[bot]
0597b0b4fa New Crowdin translations by GitHub Action (#6896)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-06-18 09:52:40 -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
adeba6313e Chore: update packages used by mail html template (#6970) 2024-06-11 20:25:57 -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
Daniel Böhme
5bdb4136a5 Enhancement: allow consumption of odg files (#6940) 2024-06-09 07:34:22 -07: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
f9e2a66153 Fixes the logging of an email message to be something useful (#6901) 2024-06-03 10:11:31 -07:00
shamoon
3d86934a0d Bump version to 2.9.0 2024-06-02 22:17:59 -07:00
github-actions[bot]
c6247037dd New Crowdin translations by GitHub Action (#6753)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-06-02 22:01:06 -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
Lino
3aa7944abf Allow to set a custom path for the classification file (#6858) 2024-05-31 09:42:18 -07:00
dependabot[bot]
59edf10aa9 Chore(deps-dev): Bump the development group across 1 directory with 2 updates (#6851)
* Chore(deps-dev): Bump the development group across 1 directory with 2 updates

Bumps the development group with 2 updates in the / directory: [ruff](https://github.com/astral-sh/ruff) and [mkdocs-material](https://github.com/squidfunk/mkdocs-material).


Updates `ruff` from 0.4.4 to 0.4.6
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.4.4...v0.4.6)

Updates `mkdocs-material` from 9.5.24 to 9.5.25
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.24...9.5.25)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: development
- dependency-name: mkdocs-material
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updates hook versions to match

* New codespell fixes

* Remove unneeded i18n

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Trenton H <797416+stumpylog@users.noreply.github.com>
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-05-29 07:04:01 +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
Trenton H
4c3d230694 Chore(deps): Use psycopg as recommended (#6811) 2024-05-23 13:09:05 -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
shamoon
15203cfa52 Bump version to 2.8.6 2024-05-15 13:54:33 -07:00
github-actions[bot]
066e97a7c6 New Crowdin translations by GitHub Action (#6735)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-05-15 13:50:24 -07:00
shamoon
e24b9fd5f9 Security: disallow API remote-user auth if disabled (#6739) 2024-05-15 20:18:50 +00:00
shamoon
bc08445d72 Bump version to v2.8.5 2024-05-14 22:11:43 -07:00
github-actions[bot]
d5ab69b856 New Crowdin translations by GitHub Action (#6714)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-05-14 21:41:31 -07:00
shamoon
b2c89b7654 Bump version to 2.8.4 2024-05-13 12:59:32 -07:00
github-actions[bot]
5a8c99d2a5 New Crowdin translations by GitHub Action (#6663)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-05-13 12:44:05 -07: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
github-actions[bot]
55008d52d0 New Crowdin translations by GitHub Action (#6634)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-05-09 13:19:58 -07:00
Trenton H
bef71317e9 Bumps version to 2.8.3 2024-05-09 13:03:06 -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
02b7823d63 Bump version to 2.8.2 2024-05-07 17:13:59 -07:00
github-actions[bot]
75c52f9af2 New Crowdin translations by GitHub Action (#6606)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2024-05-07 17:09:33 -07:00
Trenton H
40f1dc3428 Restores the compression of static files for x86_64 (#6627) 2024-05-07 15:17:15 -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