fix: remove issue duplicated when adding multiple modules (#4637)

This commit is contained in:
Nikhil 2024-05-29 13:31:32 +05:30 committed by GitHub
parent 49e65fbcb3
commit 571a3d1239
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -182,7 +182,6 @@ class IssueAPIEndpoint(BaseAPIView):
issue_queryset = ( issue_queryset = (
self.get_queryset() self.get_queryset()
.annotate(cycle_id=F("issue_cycle__cycle_id")) .annotate(cycle_id=F("issue_cycle__cycle_id"))
.annotate(module_id=F("issue_module__module_id"))
.annotate( .annotate(
link_count=IssueLink.objects.filter(issue=OuterRef("id")) link_count=IssueLink.objects.filter(issue=OuterRef("id"))
.order_by() .order_by()