From 476d7537207ed93426e5d55e3e6dc01cba0e4d3b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 16:20:38 -0800 Subject: [PATCH 1/3] Chore(deps): Bump django from 5.1.3 to 5.1.4 (#8445) Bumps [django](https://github.com/django/django) from 5.1.3 to 5.1.4. - [Commits](https://github.com/django/django/compare/5.1.3...5.1.4) --- updated-dependencies: - dependency-name: django dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Pipfile | 2 +- Pipfile.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Pipfile b/Pipfile index 523fc8c2a..98ca8b142 100644 --- a/Pipfile +++ b/Pipfile @@ -7,7 +7,7 @@ name = "pypi" dateparser = "~=1.2" # WARNING: django does not use semver. # Only patch versions are guaranteed to not introduce breaking changes. -django = "~=5.1.3" +django = "~=5.1.4" django-allauth = {extras = ["mfa", "socialaccount"], version = "*"} django-auditlog = "*" django-celery-results = "*" diff --git a/Pipfile.lock b/Pipfile.lock index 282e2f94b..5efe0cf6e 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "a194c6834fba6a14712ba36eb0b896f18d7ef4393523e5d55ccb103104e99ddb" + "sha256": "3f2f37d0a7229998ac58bee3144c18a2d91802bc44c6bd64533ab477b5d637c6" }, "pipfile-spec": 6, "requires": {}, @@ -515,12 +515,12 @@ }, "django": { "hashes": [ - "sha256:8b38a9a12da3ae00cb0ba72da985ec4b14de6345046b1e174b1fd7254398f818", - "sha256:c0fa0e619c39325a169208caef234f90baa925227032ad3f44842ba14d75234a" + "sha256:236e023f021f5ce7dee5779de7b286565fdea5f4ab86bae5338e3f7b69896cf0", + "sha256:de450c09e91879fa5a307f696e57c851955c910a438a35e6b4c895e86bedc82a" ], "index": "pypi", "markers": "python_version >= '3.10'", - "version": "==5.1.3" + "version": "==5.1.4" }, "django-allauth": { "extras": [ From f836c5ce3e1b43681ddc078a5cb80b6637832d3b Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 7 Dec 2024 08:04:10 -0800 Subject: [PATCH 2/3] Chore: some logging to trash emptying --- src/documents/tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/documents/tasks.py b/src/documents/tasks.py index d12e73138..8b0cbf249 100644 --- a/src/documents/tasks.py +++ b/src/documents/tasks.py @@ -321,6 +321,8 @@ def update_document_content_maybe_archive_file(document_id): @shared_task def empty_trash(doc_ids=None): + if doc_ids is None: + logger.info("Emptying trash of all expired documents") documents = ( Document.deleted_objects.filter(id__in=doc_ids) if doc_ids is not None @@ -337,6 +339,7 @@ def empty_trash(doc_ids=None): # Temporarily connect the cleanup handler models.signals.post_delete.connect(cleanup_document_deletion, sender=Document) documents.delete() # this is effectively a hard delete + logger.info(f"Deleted {len(deleted_document_ids)} documents from trash") if settings.AUDIT_LOG_ENABLED: # Delete the audit log entries for documents that dont exist anymore From 20e45407f5af13b815016ce5f821838698a86085 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 7 Dec 2024 08:05:11 -0800 Subject: [PATCH 3/3] Fix: fix trash column display on mobile --- src-ui/src/app/components/admin/trash/trash.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ui/src/app/components/admin/trash/trash.component.html b/src-ui/src/app/components/admin/trash/trash.component.html index d03d8d98e..f1e065c2c 100644 --- a/src-ui/src/app/components/admin/trash/trash.component.html +++ b/src-ui/src/app/components/admin/trash/trash.component.html @@ -60,7 +60,7 @@ - {{ getDaysRemaining(document) }} days + {{ getDaysRemaining(document) }} days