1836 Commits

Author SHA1 Message Date
shamoon
0485472a07 Feature: OAuth2 Gmail and Outlook email support (#7866) 2024-10-10 20:57:32 +00:00
shamoon
148b3a49e6 Chore: Unify workflow logic (#7880) 2024-10-10 20:28:44 +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
52a74d4997 Fixes the ASN checking to allow an ASN of 0 (#7878) 2024-10-08 12:47:37 -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
shamoon
bf3569aabd Fix page_count migration 2024-09-27 21:47:30 -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
shamoon
4ea67daaf7 Fix: delete_pages should require ownership (#7714) 2024-09-15 16:24:40 -07:00
shamoon
3f718c04df Fix: add permissions to OPTIONS requests for notes (#7661) 2024-09-09 08:34:21 -07:00
Lukas Metzger
d754ec2e01 Refactor: performance and storage optimization of barcode scanning (#7646)
---------

Co-authored-by: Lukas Metzger <1814751+loewexy@users.noreply.github.com>
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-09-07 16:11:36 -07:00
shamoon
cd73b14ef3 Fix: use JSON for note audit log entries (#7650) 2024-09-07 16:09:11 -07:00
Yichi Yang
782bc2cec2 Refactor: Use django-filter logic for filtering full text search queries (#7507) 2024-08-24 21:20:43 -07:00
Yichi Yang
4665f8bca6 Refactor: Reduce number of SQL queries when serializing List[Document] (#7505) 2024-08-24 21:20:24 -07:00
shamoon
dc3002a7db Revert "Chore: add line to log indexing"
This reverts commit b34f9c3b2083069fdb82eb504de00c222a04ba34.
2024-08-20 22:11:20 -07:00
shamoon
4c5b202c1c Fix: use JSON for update archive file auditlog entries (#7503) 2024-08-19 23:29:24 -07:00
dependabot[bot]
ee62534d04 Chore(deps): Bump the small-changes group across 1 directory with 6 updates (#7502)
* Chore(deps): Bump the small-changes group across 1 directory with 6 updates

Bumps the small-changes group with 6 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [django-filter](https://github.com/carltongibson/django-filter) | `24.2` | `24.3` |
| [django-soft-delete](https://github.com/san4ezy/django_softdelete) | `1.0.13` | `1.0.14` |
| [nltk](https://github.com/nltk/nltk) | `3.8.1` | `3.9.1` |
| [rapidfuzz](https://github.com/rapidfuzz/RapidFuzz) | `3.9.5` | `3.9.6` |
| [watchdog](https://github.com/gorakhargosh/watchdog) | `4.0.1` | `4.0.2` |
| [factory-boy](https://github.com/FactoryBoy/factory_boy) | `3.3.0` | `3.3.1` |



Updates `django-filter` from 24.2 to 24.3
- [Release notes](https://github.com/carltongibson/django-filter/releases)
- [Changelog](https://github.com/carltongibson/django-filter/blob/main/CHANGES.rst)
- [Commits](https://github.com/carltongibson/django-filter/compare/24.2...24.3)

Updates `django-soft-delete` from 1.0.13 to 1.0.14
- [Commits](https://github.com/san4ezy/django_softdelete/commits)

Updates `nltk` from 3.8.1 to 3.9.1
- [Changelog](https://github.com/nltk/nltk/blob/develop/ChangeLog)
- [Commits](https://github.com/nltk/nltk/compare/3.8.1...3.9.1)

Updates `rapidfuzz` from 3.9.5 to 3.9.6
- [Release notes](https://github.com/rapidfuzz/RapidFuzz/releases)
- [Changelog](https://github.com/rapidfuzz/RapidFuzz/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/rapidfuzz/RapidFuzz/compare/v3.9.5...v3.9.6)

Updates `watchdog` from 4.0.1 to 4.0.2
- [Release notes](https://github.com/gorakhargosh/watchdog/releases)
- [Changelog](https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst)
- [Commits](https://github.com/gorakhargosh/watchdog/compare/v4.0.1...v4.0.2)

Updates `factory-boy` from 3.3.0 to 3.3.1
- [Changelog](https://github.com/FactoryBoy/factory_boy/blob/master/docs/changelog.rst)
- [Commits](https://github.com/FactoryBoy/factory_boy/compare/3.3.0...3.3.1)

---
updated-dependencies:
- dependency-name: django-filter
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: small-changes
- dependency-name: django-soft-delete
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: small-changes
- dependency-name: nltk
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: small-changes
- dependency-name: rapidfuzz
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: small-changes
- dependency-name: watchdog
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: small-changes
- dependency-name: factory-boy
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: small-changes
...

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

* Create 1052_document_transaction_id.py

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2024-08-19 19:51:02 -07:00
shamoon
c6f607788c Chore: add line to log indexing 2024-08-15 08:03:35 -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
Freddy0
dd8f8fa42b Enhancement: include owner username in post-consumption variables (#7270) 2024-07-16 15:23:29 -07:00
Trenton H
c9beff3425 Chore: Squash older automatic migrations (#7267) 2024-07-16 09:21:41 -07:00
shamoon
be17c2b471 Fix: include trashed docs in existing doc check (#7229) 2024-07-12 16:45:35 -07:00
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