From 9b6721790f711c62fde54dac8671df637aee0e79 Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Thu, 20 Jul 2023 16:58:34 +0530 Subject: [PATCH] fix: issues count to remove archived issues (#1591) --- apiserver/plane/api/views/notification.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apiserver/plane/api/views/notification.py b/apiserver/plane/api/views/notification.py index f0c8e05d5..b7f5bd335 100644 --- a/apiserver/plane/api/views/notification.py +++ b/apiserver/plane/api/views/notification.py @@ -214,6 +214,7 @@ class UnreadNotificationEndpoint(BaseAPIView): workspace__slug=slug, receiver_id=request.user.id, read_at__isnull=True, + archived_at__isnull=True, entity_identifier__in=IssueSubscriber.objects.filter( workspace__slug=slug, subscriber_id=request.user.id ).values_list("issue_id", flat=True), @@ -224,6 +225,7 @@ class UnreadNotificationEndpoint(BaseAPIView): workspace__slug=slug, receiver_id=request.user.id, read_at__isnull=True, + archived_at__isnull=True, entity_identifier__in=IssueAssignee.objects.filter( workspace__slug=slug, assignee_id=request.user.id ).values_list("issue_id", flat=True), @@ -234,6 +236,7 @@ class UnreadNotificationEndpoint(BaseAPIView): workspace__slug=slug, receiver_id=request.user.id, read_at__isnull=True, + archived_at__isnull=True, entity_identifier__in=Issue.objects.filter( workspace__slug=slug, created_by=request.user ).values_list("pk", flat=True),