225 Commits

Author SHA1 Message Date
shamoon
40a058e722 Fix URL validation of empty string 2023-12-29 01:26:24 -08:00
shamoon
a5272228af Fix saving doc links with no value (#5144) 2023-12-28 19:57:46 +00:00
shamoon
1302e1d48a Fix: Dont allow null custom_fields property via API (#5063) 2023-12-19 21:53:56 +00:00
shamoon
3e0c83750f Enhancement: symmetric document links (#4907) 2023-12-19 13:43:50 -08:00
shamoon
5e361b0e81 Enhancement: shared icon & shared by me filter (#4859) 2023-12-19 20:45:04 +00:00
shamoon
99d2c5568a Fix consumption template empty field checking 2023-12-05 09:08:43 -08:00
shamoon
22e58b8e14 Enhancement: implement document link custom field (#4799) 2023-12-05 08:16:56 -08:00
shamoon
084c31b37a Enhancement: support assigning custom fields via consumption templates (#4727) 2023-12-03 15:35:30 -08:00
shamoon
28dbe96dc3 Fix: empty strings for consumption template fields should be treated as None (#4762) 2023-12-03 12:57:43 -08:00
Trenton H
ab9e561317 Chore: Backend bulk updates (#4509) 2023-11-13 17:09:56 +00:00
shamoon
a792bf1ca1 Feature: Implement custom fields for documents (#4502)
Adds custom fields of certain data types, attachable to documents and searchable

Co-Authored-By: Trenton H <797416+stumpylog@users.noreply.github.com>
2023-11-05 17:27:23 -08:00
Trenton H
dc642152d1 Standarizes the imports across all the files and modules (#4248) 2023-09-23 20:17:01 -07:00
shamoon
54783f706f Feature: consumption templates (#4196)
* Initial implementation of consumption templates

* Frontend implementation of consumption templates

Testing

* Support consumption template source

* order templates, automatically add permissions

* Support title assignment in consumption templates

* Refactoring, filters to and, show sources on list

Show sources on template list, update some translation strings

Make filters and

minor testing

* Update strings

* Only update django-multiselectfield

* Basic docs, document some methods

* Improve testing coverage, template multi-assignment merges
2023-09-22 16:53:13 -07:00
shamoon
93ef011126 Enhancement: bulk edit object permissions (#4176)
* bulk_edit_object_perms API endpoint

* Frontend support for bulk object permissions edit
2023-09-19 13:40:21 -07:00
shamoon
ef9d01fefe Feature: Share links (#3996)
* Implement share links

Basic implementation of share links

Make certain share link fields not editable, automatically grant permissions on migrate

Updated styling, error messages from expired / deleted links

frontend code linting, reversable sharelink migration

testing coverage

Update translation strings

No links message

* Consolidate file response methods

* improvements to share links on mobile devices

* Refactor share links file_version

* Add docs for share links

* Apply suggestions from code review

* When filtering share links, use the timezone aware now()

* Removes extra call to setup directories for usage in testing

* FIx copied badge display on some browsers

* Move copy to ngx-clipboard library

---------

Co-authored-by: Trenton H <797416+stumpylog@users.noreply.github.com>
2023-09-14 13:32:43 -07:00
shamoon
1cc10fb316 Fix typo in #4179 2023-09-13 23:46:26 -07:00
shamoon
3fe4f3e280 Fix: support doc_pk storage path placeholder (#4179) 2023-09-13 07:43:43 -07:00
shamoon
78cb3ccc66 Pass saved_view owner as id only (#4158) 2023-09-10 16:37:35 -07:00
Trenton Holmes
34b80a4d8e Removes support for Python 3.8 and lower from the code base 2023-09-10 11:42:59 -07:00
Trenton H
ac8f5eaa7d Unlocks all things which were locked due to ARMv7, etc 2023-09-08 11:21:43 -07:00
shamoon
b7d99ab8f3 Fix owner removed when set_permissions passed 2023-06-27 01:41:20 -07:00
jayme-github
47c8cf2afa Make DocumentSerializer return the original_filename
Make get_original_file_name return the original filename instead of the
public filename.
2023-05-27 21:35:58 +02:00
shamoon
cf7c979bb1 Merge pull request #3329 from paperless-ngx/feature-full-dynamic-counts
Enhancement: dynamic counts include all pages, hide for "Any"
2023-05-10 11:15:47 -07:00
shamoon
4443ba9d5e Default frontend to current owner, allow setting no owner on create 2023-05-09 19:53:34 -07:00
shamoon
bd1f9acc62 Dynamic counts include all pages, hide for "Any" 2023-05-05 01:01:57 -07:00
shamoon
3c9a209031 Dont perform permissions queries by default 2023-04-27 07:06:49 -07:00
Trenton H
aabcc9a1c4 Upgrades black to v23, upgrades ruff 2023-04-26 09:35:27 -07:00
Trenton H
30655f1b73 Fixes ruff not running isort against the codebase 2023-04-26 09:35:27 -07:00
Trenton H
d2c02b9102 Configures ruff as the one stop linter and resolves warnings it raised 2023-04-01 17:03:52 -07:00
shamoon
8743012e03 Merge pull request #2818 from paperless-ngx/fix-2809
Fix: permissions display should not show users with inherited permissions & unable to change owner
2023-03-30 19:49:12 -07:00
shamoon
63be51b361 Owner/name unique constraint violation should exclude self 2023-03-23 07:35:18 -07:00
shamoon
875b7662f4 Fix inherited permissions should not display per user in permissions form 2023-03-19 23:41:36 -07:00
shamoon
5108bbc192 Rename comments --> notes 2023-03-18 13:59:17 -07:00
shamoon
78cb8cff69 Just include comments on document object 2023-03-17 18:47:03 -07:00
shamoon
992ac545b3 Show number of comments on cards, tab 2023-03-17 18:47:03 -07:00
Trenton Holmes
b78d87f44a Adds owner and original name to the possible naming schemes 2023-03-12 15:29:58 -07:00
shamoon
d8625c057b API should 400 on unique violations 2023-03-08 20:16:21 -08:00
shamoon
ad0cb8c8a3 Change model uniqueness from name to name+owner 2023-03-08 19:07:32 -08:00
Jonas Winkler
7b4894ca05 don't submit owner via API 2023-02-28 18:32:09 +01:00
Trenton Holmes
96e5e9b67c Allow setting the ASN on document upload 2023-02-20 07:56:37 -08:00
Trenton H
facec31bad Moves the renaming ttask into the serialiser update instead of post_save. Feels more correct 2023-02-18 12:19:33 -08:00
shamoon
1332d9a389 Merge branch 'dev' into feature-permissions 2023-02-14 11:32:37 -08:00
shamoon
7c7e18f37e Add missing storage path placeholders 2023-02-12 02:01:44 -08:00
Michael Shamoon
71e7c502f3 Fix bulk setting null owner / permissions 2022-12-14 00:47:54 -08:00
Michael Shamoon
b28040952c Support owner and object permissions for advanced queries 2022-12-12 22:40:31 -08:00
Michael Shamoon
bda44bf83d fix empty set permissions 2022-12-12 13:37:59 -08:00
Michael Shamoon
b811585992 Document uploads should be owned by user 2022-12-12 13:24:59 -08:00
Michael Shamoon
405a7b4684 Merge branch 'dev' into feature-permissions 2022-12-09 17:54:14 -08:00
Michael Shamoon
b55f43df84 Support bulk edit owner 2022-12-09 17:51:01 -08:00
Michael Shamoon
360a2258e1 Add ability to set owner per object 2022-12-09 15:54:30 -08:00