168 Commits

Author SHA1 Message Date
shamoon
182b4e6c72 Enhancement: dashboard improvements, drag-n-drop reorder dashboard views (#4252)
* Updated dashboard

* Make entire screen dropzone on dashboard too

* Floating upload widget status alerts

* Visual tweaks: spacing, borders

* Better empty view widget

* Support drag + drop reorder of dashboard saved views

* Update messages.xlf

* Disable dashbaord dnd if global dnd active

* Remove ngx-file-drop dep, rebuild file-drop & upload files widget

* Revert custom file drop implementation

* Try patch-package fix

* Simplify dropzone transitions to make more reliable

* Update messages.xlf

* Update dashboard.spec.ts

* Fix coverage
2023-09-28 10:18:12 -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
Trenton Holmes
34b80a4d8e Removes support for Python 3.8 and lower from the code base 2023-09-10 11:42:59 -07:00
shamoon
1837110fff Fix: enforce permissions on bulk_edit operations 2023-08-17 00:12:46 -07:00
shamoon
025fbe4d2a Note creation / deletion should respect doc permissions
- Disable add note button on frontend
- Explicitly disable add / delete via api
2023-08-01 22:28:27 -07:00
shamoon
35285b35df Adding explicit doc permissions test 2023-06-27 10:53:48 -07:00
shamoon
b7d99ab8f3 Fix owner removed when set_permissions passed 2023-06-27 01:41:20 -07:00
shamoon
7abb927625 Return user first & last name from backend 2023-06-12 08:15:59 -07:00
jayme-github
16a0a7c73a Feature: Allow to filter documents by original filename and checksum (#3485)
* Allow to filter documents by original filename and checksum

This adds filters for the original filename and checksum of documents to
be able to to lazy checks if the file is already stored in paperless.

* Add tests for DelayedQuery

* Add checksum and original_filename to whoosh index and DelayedQuery

* Refactored DelayedQuery to reduce duplicate code
* Choose icontains for checksums as whoosh has no exact match query term
* Bumped index version

* Revert whoosh filtering logic to simpler structure, remove redundant tests

Revert "Revert whoosh filtering logic to simpler structure, remove redundant tests"

This reverts commit 86792174bfbc697f42b72c4b39ee9eba483bb425.

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
2023-06-04 10:34:27 -07:00
shamoon
f425fe9d62 Merge pull request #3472 from paperless-ngx/fix-disable-date-suggestions
Fix: prevent date suggestion search if disabled
2023-05-30 07:48:03 -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
b294153ef5 prevent date suggestion search if disabled 2023-05-27 10:51:30 -07:00
shamoon
5a579ccf1c Merge pull request #3359 from paperless-ngx/feature-fix-autocomplete-respect-perms
Fix: respect permissions for autocomplete suggestions
2023-05-12 13:35:45 -07:00
shamoon
4a0d6c733d Respect permissions for autocomplete suggestions 2023-05-11 14:43:25 -07:00
shamoon
0cfb436e57 Merge pull request #3309 from paperless-ngx/feature-owner-filtering
Feature: owner filtering
2023-05-11 10:05:51 -07: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
e54e552aad Merge pull request #3347 from paperless-ngx/fix/issue-3346
Fix: default frontend to current owner, allow setting no owner on create
2023-05-10 08:18:08 -07:00
shamoon
4443ba9d5e Default frontend to current owner, allow setting no owner on create 2023-05-09 19:53:34 -07:00
shamoon
4d84a0a87b Re-work filter editor, bulk editor & reset buttons 2023-05-09 19:48:04 -07:00
shamoon
2a65235e66 Support owner API query vars 2023-05-08 15:34:14 -07:00
shamoon
fce481620d Merge pull request #3345 from paperless-ngx/fix/issue-3341 2023-05-08 07:04:49 -07:00
shamoon
c446a98520 Fix PassUserMixin not properly being used in DocumentViewSet 2023-05-07 17:40:09 -07:00
shamoon
33400cd4f3 Add proper testing for *__id__in testing 2023-05-07 00:04:23 -07:00
shamoon
ab78b98d6a Add "all" property to results 2023-05-06 11:31:47 -07:00
shamoon
31080cec5c Fix note sorting, testing, bump search index version 2023-05-04 02:07:48 -07:00
shamoon
902ae3597e Respect superuser for advanced queries, test coverage for object perms 2023-04-27 15:51:34 -07:00
shamoon
1419b07315 Testing for whoosh support for multi-object query vars 2023-04-27 08:47:36 -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
shamoon
ceb985057c Respect permissions on document view actions 2023-04-25 22:49:37 -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
Trenton H
36a6df0bae Creates a data model for the document consumption, allowing stronger typing of arguments and setting of some information about the file only once 2023-04-01 11:05:34 -07:00
shamoon
c37abbb864 Merge pull request #2910 from paperless-ngx/feature-improved-statistics-widget
Feature: Improved statistics widget
2023-03-19 23:34:19 -07:00
shamoon
5108bbc192 Rename comments --> notes 2023-03-18 13:59:17 -07:00
shamoon
74c733b887 Improved statistics widget 2023-03-18 01:51:18 -07:00
Trenton Holmes
b78d87f44a Adds owner and original name to the possible naming schemes 2023-03-12 15:29:58 -07:00
Trenton H
6f5c2fa2fc Comment up the testing a bit more 2023-03-09 08:43:31 -08:00
shamoon
d8625c057b API should 400 on unique violations 2023-03-08 20:16:21 -08:00
shamoon
710e9e2c78 Add test coverage for owner-aware unique constraints 2023-03-08 19:07:32 -08:00
shamoon
1ea9c37dd1 Only return logs that exist 2023-02-23 14:43:43 -08:00
Trenton H
e061db00db Updates the latest test to use status codes 2023-02-20 10:25:21 -08:00
Trenton Holmes
6644ccc33f Changes testing to use more declarative status code names from DRF 2023-02-20 10:25:21 -08: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