Skip to content

Commit

Permalink
[WEB-597] chore: dashboard overdue issues (#3832)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: Anmol Singh Bhatia <[email protected]>
  • Loading branch information
3 people authored Feb 29, 2024
1 parent 39136d3 commit 5680520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apiserver/plane/app/views/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion web/components/dashboard/widgets/overview-stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const OverviewStatsWidget: React.FC<WidgetProps> = 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",
Expand Down

0 comments on commit 5680520

Please sign in to comment.