From 56805203f11ed4e0ab260cec25946be82c456e4d Mon Sep 17 00:00:00 2001 From: Bavisetti Narayan <72156168+NarayanBavisetti@users.noreply.github.com> Date: Thu, 29 Feb 2024 13:32:16 +0530 Subject: [PATCH] [WEB-597] chore: dashboard overdue issues (#3832) * fix bug of dashboard report overdue of all tasks #3815 (#3823) * chore: pending issues filter * chore: removed the Q parameter * chore: dashboard widget overdue stats card redirection params updated --------- Co-authored-by: AbId KhAn Co-authored-by: Anmol Singh Bhatia --- apiserver/plane/app/views/dashboard.py | 1 + web/components/dashboard/widgets/overview-stats.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apiserver/plane/app/views/dashboard.py b/apiserver/plane/app/views/dashboard.py index 21fe422f9..62ce0d910 100644 --- a/apiserver/plane/app/views/dashboard.py +++ b/apiserver/plane/app/views/dashboard.py @@ -58,6 +58,7 @@ def dashboard_overview_stats(self, request, slug): pending_issues_count = Issue.issue_objects.filter( ~Q(state__group__in=["completed", "cancelled"]), + target_date__lt=timezone.now().date(), project__project_projectmember__is_active=True, project__project_projectmember__member=request.user, workspace__slug=slug, diff --git a/web/components/dashboard/widgets/overview-stats.tsx b/web/components/dashboard/widgets/overview-stats.tsx index 31bdee587..5a105cc15 100644 --- a/web/components/dashboard/widgets/overview-stats.tsx +++ b/web/components/dashboard/widgets/overview-stats.tsx @@ -37,7 +37,7 @@ export const OverviewStatsWidget: React.FC = observer((props) => { key: "overdue", title: "Issues overdue", count: widgetStats?.pending_issues_count, - link: `/${workspaceSlug}/workspace-views/assigned/?target_date=${today};before`, + link: `/${workspaceSlug}/workspace-views/assigned/?state_group=backlog,unstarted,started&target_date=${today};before`, }, { key: "created",