2919 Commits

Author SHA1 Message Date
shamoon
c0f74f88b6 Merge branch 'dev' into feature-workflows 2024-01-03 00:13:16 -08:00
shamoon
e6d6f21d33
Fix: fix filename format remove none when part of directory (#5210) 2024-01-02 15:17:18 +00:00
shamoon
60850ca033 Fix exporter counts after removing consumption template ctype 2024-01-01 15:55:17 -08:00
shamoon
4d76b391a4 Remove pytest.mark.django_db 2024-01-01 15:52:02 -08:00
shamoon
d3e67ea548 Manually remove the old consumptiontemplate content_type 2024-01-01 15:50:35 -08:00
Antoine Libert
54372b5618
Fix: improve performance of listing result IDs (#5195) 2024-01-01 07:58:43 -08:00
shamoon
9ba4fc715a Update translation strings 2024-01-01 07:57:30 -08:00
shamoon
8b2d585c0b Rename consumption to consumption started for consistency 2024-01-01 07:57:19 -08:00
shamoon
627b01f971 Fix trigger type equality check 2023-12-31 10:54:37 -08:00
shamoon
fb81612ed1
Fix overlap of focus highlight on login screen (#5193) 2023-12-31 10:01:45 -08:00
shamoon
c5d622279c
Fix symmetric doc links with target value None (#5187) 2023-12-31 07:56:26 -08:00
shamoon
3a2117e4b7 Cover new trigger type exception 2023-12-30 22:56:35 -08:00
shamoon
1331ffa93f Cover mailrule in consumption template migration 2023-12-30 22:48:55 -08:00
shamoon
7ccfa45eb9 Refactor document_matches_workflow method 2023-12-30 21:49:54 -08:00
shamoon
dd3ed7f2fa Apply suggestions from code review 2023-12-30 16:38:55 -08:00
shamoon
f3d5f835db Add coverage for consumption template migrations 2023-12-30 16:17:23 -08:00
shamoon
c009dd7fc6 Merge branch 'dev' into feature-workflows 2023-12-30 08:48:46 -08:00
shamoon
0e716d0566 Add content matching to workflow trigger 2023-12-30 08:47:03 -08:00
shamoon
428ffb4729
Fix: setting empty doc link with docs to be removed (#5174) 2023-12-30 07:43:29 -08:00
shamoon
2e20dbb0fe Fix some type annotations 2023-12-30 00:13:37 -08:00
shamoon
570c09bca2 Merge branch 'dev' into feature-workflows 2023-12-30 00:07:18 -08:00
Trenton H
061f33fb05
Feature: Allow setting backend configuration settings via the UI (#5126)
* Saving some start on this

* At least partially working for the tesseract parser

* Problems with migration testing need to figure out

* Work around that error

* Fixes max m_pixels

* Moving the settings to main paperless application

* Starting some consumer options

* More fixes and work

* Fixes these last tests

* Fix max_length on OcrSettings.mode field

* Fix all fields on Common & Ocr settings serializers

* Umbrellla config view

* Revert "Umbrellla config view"

This reverts commit fbaf9f4be30f89afeb509099180158a3406416a5.

* Updates to use a single configuration object for all settings

* Squashed commit of the following:

commit 8a0a49dd5766094f60462fbfbe62e9921fbd2373
Author: shamoon <4887959+shamoon@users.noreply.github.com>
Date:   Tue Dec 19 23:02:47 2023 -0800

    Fix formatting

commit 66b2d90c507b8afd9507813ff555e46198ea33b9
Author: shamoon <4887959+shamoon@users.noreply.github.com>
Date:   Tue Dec 19 22:36:35 2023 -0800

    Refactor frontend data models

commit 5723bd8dd823ee855625e250df39393e26709d48
Author: Adam Bogdał <adam@bogdal.pl>
Date:   Wed Dec 20 01:17:43 2023 +0100

    Fix: speed up admin panel for installs with a large number of documents (#5052)

commit 9b08ce176199bf9011a6634bb88f616846150d2b
Author: shamoon <4887959+shamoon@users.noreply.github.com>
Date:   Tue Dec 19 15:18:51 2023 -0800

    Update PULL_REQUEST_TEMPLATE.md

commit a6248bec2d793b7690feed95fcaf5eb34a75bfb6
Author: shamoon <4887959+shamoon@users.noreply.github.com>
Date:   Tue Dec 19 15:02:05 2023 -0800

    Chore: Update Angular to v17 (#4980)

commit b1f6f52486d5ba5c04af99b41315eb6428fd1fa8
Author: shamoon <4887959+shamoon@users.noreply.github.com>
Date:   Tue Dec 19 13:53:56 2023 -0800

    Fix: Dont allow null custom_fields property via API (#5063)

commit 638d9970fd468d8c02c91d19bd28f8b0796bdcb1
Author: shamoon <4887959+shamoon@users.noreply.github.com>
Date:   Tue Dec 19 13:43:50 2023 -0800

    Enhancement: symmetric document links (#4907)

commit 5e8de4c1da6eb4eb8f738b20962595c7536b30ec
Author: shamoon <4887959+shamoon@users.noreply.github.com>
Date:   Tue Dec 19 12:45:04 2023 -0800

    Enhancement: shared icon & shared by me filter (#4859)

commit 088bad90306025d3f6b139cbd0ad264a1cbecfe5
Author: Trenton H <797416+stumpylog@users.noreply.github.com>
Date:   Tue Dec 19 12:04:03 2023 -0800

    Bulk updates all the backend libraries (#5061)

* Saving some work on frontend config

* Very basic but dynamically-generated config form

* Saving work on slightly less ugly frontend config

* JSON validation for user_args field

* Fully dynamic config form

* Adds in some additional validators for a nicer error message

* Cleaning up the testing and coverage more

* Reverts unintentional change

* Adds documentation about the settings and the precedence

* Couple more commenting and style fixes

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2023-12-29 15:42:56 -08:00
shamoon
da058b915b
Enhancement: improve validation of custom field values (#5166)
* Support all URI schemes

* Reworks custom field value validation to check and return a 400 error code in more cases and support more URL looking items, not just some basic schemes

* Fixes a spelling error in the message

---------

Co-authored-by: Trenton H <797416+stumpylog@users.noreply.github.com>
2023-12-29 14:45:29 -08:00
shamoon
84c6ed6e6d Fix merge error 2023-12-29 13:54:32 -08:00
shamoon
7f5a9042bd Log applying action 2023-12-29 13:50:44 -08:00
shamoon
70b7d1c05b Frontend conditional display of trigger fields 2023-12-29 13:50:44 -08:00
shamoon
5b95f0a2c6 All workflows types override previous 2023-12-29 13:50:44 -08:00
shamoon
d127c37977 Complete testing for workflows backend changes 2023-12-29 13:50:44 -08:00
shamoon
78fd8b35b2 Backend tests for workflow triggers, enabling/disabling 2023-12-29 13:50:44 -08:00
shamoon
18ebae7dd0 Add enable/disable workflow 2023-12-29 13:50:44 -08:00
shamoon
2f61968e2e Dynamic adding / removing workflow triggers + actions 2023-12-29 13:50:44 -08:00
shamoon
220e9993a1 Implement document updated workflow trigger 2023-12-29 13:50:44 -08:00
shamoon
264d9f97fc Implement trigger filter by tag, correspondent and doctype 2023-12-29 13:50:44 -08:00
shamoon
84199a6894 Initial implementation of document added trigger 2023-12-29 13:50:44 -08:00
shamoon
e328d5aa95 Fix tests for workflows, working nested triggers/actions 2023-12-29 13:50:44 -08:00
shamoon
6984fcf821 Migration from ConsumptionTemplate to Workflow 2023-12-29 13:50:44 -08:00
shamoon
cf869b1356
Fix: type casting of db values for shared by me filter (#5155) 2023-12-29 17:19:45 +00:00
shamoon
05e294fc81 Fix URL validation of empty string 2023-12-29 01:26:24 -08:00
github-actions[bot]
3861e84f89
New Crowdin translations by GitHub Action (#5133)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2023-12-28 15:14:10 -08:00
shamoon
76001105b8
Fix saving doc links with no value (#5144) 2023-12-28 19:57:46 +00:00
shamoon
fbeb03c377
Fix: allow multiple consumption templates to assign the same custom field (#5142) 2023-12-28 10:32:33 -08:00
shamoon
eaeeb6447f Bump version to 2.2.0 2023-12-27 23:11:52 -08:00
github-actions[bot]
e5db44bc2b
New Crowdin translations by GitHub Action (#4998)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2023-12-27 23:08:42 -08:00
Trenton H
ffad42615f
Fixes the case where a mail attachment has no filename to use (#5117) 2023-12-27 17:38:22 -08:00
shamoon
5576a073a5
Fix: Disable auto-login for API token requests (#5094) 2023-12-26 22:22:41 +00:00
Evgenii
151d337f6c
Fix: update ASN regex to support Unicode (#5099) 2023-12-25 16:33:30 -08:00
Florian Bachmann
74e89b0ee3
Fix: ensure CSRF-Token on Index view (#5082) 2023-12-23 07:56:56 -08:00
Adam Bogdał
5723bd8dd8
Fix: speed up admin panel for installs with a large number of documents (#5052) 2023-12-19 16:17:43 -08:00
shamoon
b1f6f52486
Fix: Dont allow null custom_fields property via API (#5063) 2023-12-19 21:53:56 +00:00
shamoon
638d9970fd
Enhancement: symmetric document links (#4907) 2023-12-19 13:43:50 -08:00