chore: archived cycles and mpdules (#4126)

This commit is contained in:
Bavisetti Narayan 2024-04-05 19:24:24 +05:30 committed by GitHub
parent 3742ea91bf
commit 62dac421dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ class WorkspaceCyclesEndpoint(BaseAPIView):
.select_related("project") .select_related("project")
.select_related("workspace") .select_related("workspace")
.select_related("owned_by") .select_related("owned_by")
.filter(archived_at__isnull=False)
.annotate( .annotate(
total_issues=Count( total_issues=Count(
"issue_cycle", "issue_cycle",

View File

@ -30,6 +30,7 @@ class WorkspaceModulesEndpoint(BaseAPIView):
.select_related("workspace") .select_related("workspace")
.select_related("lead") .select_related("lead")
.prefetch_related("members") .prefetch_related("members")
.filter(archived_at__isnull=False)
.prefetch_related( .prefetch_related(
Prefetch( Prefetch(
"link_module", "link_module",