Skip to content

Commit

Permalink
[WEB-3039] fix: assignee count in dashboard (#6418)
Browse files Browse the repository at this point in the history
* fix: assignee count in dashboard

* fix: removed the extra filter
  • Loading branch information
NarayanBavisetti authored Jan 17, 2025
1 parent 4432be1 commit 00cc338
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apiserver/plane/app/views/dashboard/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
def dashboard_overview_stats(self, request, slug):
assigned_issues = (
Issue.issue_objects.filter(
(Q(assignees__in=[request.user]) & Q(issue_assignee__deleted_at__isnull=True)),
project__project_projectmember__is_active=True,
project__project_projectmember__member=request.user,
workspace__slug=slug,
assignees__in=[request.user],
)
.filter(
Q(
Expand Down Expand Up @@ -176,10 +176,13 @@ def dashboard_assigned_issues(self, request, slug):
# get all the assigned issues
assigned_issues = (
Issue.issue_objects.filter(
(
Q(assignees__in=[request.user])
& Q(issue_assignee__deleted_at__isnull=True)
),
workspace__slug=slug,
project__project_projectmember__member=request.user,
project__project_projectmember__is_active=True,
assignees__in=[request.user],
)
.filter(**filters)
.select_related("workspace", "project", "state", "parent")
Expand Down

0 comments on commit 00cc338

Please sign in to comment.