From d99f85ce059d50d5db4d6c385828d0a328a622db Mon Sep 17 00:00:00 2001 From: pablohashescobar <118773738+pablohashescobar@users.noreply.github.com> Date: Wed, 17 May 2023 00:46:20 +0530 Subject: [PATCH] chore: analytics assignee email for default analytics (#1057) --- apiserver/plane/api/views/analytic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apiserver/plane/api/views/analytic.py b/apiserver/plane/api/views/analytic.py index 2edb24637..1691f3af6 100644 --- a/apiserver/plane/api/views/analytic.py +++ b/apiserver/plane/api/views/analytic.py @@ -237,21 +237,21 @@ class DefaultAnalyticsEndpoint(BaseAPIView): ) most_issue_created_user = ( queryset.exclude(created_by=None) - .values("created_by__first_name", "created_by__last_name", "created_by__avatar") + .values("created_by__first_name", "created_by__last_name", "created_by__avatar", "created_by__email") .annotate(count=Count("id")) .order_by("-count") )[:5] most_issue_closed_user = ( queryset.filter(completed_at__isnull=False, assignees__isnull=False) - .values("assignees__first_name", "assignees__last_name", "assignees__avatar") + .values("assignees__first_name", "assignees__last_name", "assignees__avatar", "assignees__email") .annotate(count=Count("id")) .order_by("-count") )[:5] pending_issue_user = ( queryset.filter(completed_at__isnull=True) - .values("assignees__first_name", "assignees__last_name", "assignees__avatar") + .values("assignees__first_name", "assignees__last_name", "assignees__avatar", "assignees__email") .annotate(count=Count("id")) .order_by("-count") )