chore: handling the archived module ids in the issue list and issue detail endpoints (#5343)

This commit is contained in:
guru_sainath 2024-08-09 17:16:37 +05:30 committed by GitHub
parent 24b1e71cbf
commit f457048644
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 8 deletions

View file

@ -223,7 +223,8 @@ class WorkspaceViewIssuesViewSet(BaseViewSet):
ArrayAgg(
"issue_module__module_id",
distinct=True,
filter=~Q(issue_module__module_id__isnull=True),
filter=~Q(issue_module__module_id__isnull=True)
& Q(issue_module__module__archived_at__isnull=True),
),
Value([], output_field=ArrayField(UUIDField())),
),