ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: восстановление профиля и локальной аналитики
This commit is contained in:
@@ -41,9 +41,10 @@ from plane.app.serializers import (
|
||||
from plane.app.views.base import BaseAPIView
|
||||
from plane.db.models import (
|
||||
CycleIssue,
|
||||
FileAsset,
|
||||
IntakeIssue,
|
||||
Issue,
|
||||
IssueActivity,
|
||||
FileAsset,
|
||||
IssueLink,
|
||||
IssueSubscriber,
|
||||
Project,
|
||||
@@ -108,6 +109,18 @@ class WorkspaceUserProfileIssuesEndpoint(BaseAPIView):
|
||||
CycleIssue.objects.filter(issue=OuterRef("id"), deleted_at__isnull=True).values("cycle_id")[:1]
|
||||
)
|
||||
)
|
||||
.annotate(
|
||||
created_by_display_name=F("created_by__display_name"),
|
||||
created_by_avatar_url=F("created_by__avatar"),
|
||||
)
|
||||
.annotate(
|
||||
source_project_name=Subquery(
|
||||
IntakeIssue.objects.filter(
|
||||
issue_id=OuterRef("id"),
|
||||
extra__bridge="external-contours",
|
||||
).values("extra__source_project_name")[:1]
|
||||
)
|
||||
)
|
||||
.annotate(
|
||||
link_count=IssueLink.objects.filter(issue=OuterRef("id"))
|
||||
.order_by()
|
||||
|
||||
Reference in New Issue
Block a user