From 62dac421dc24225980a3f053be10ccc2efabf481 Mon Sep 17 00:00:00 2001 From: Bavisetti Narayan <72156168+NarayanBavisetti@users.noreply.github.com> Date: Fri, 5 Apr 2024 19:24:24 +0530 Subject: [PATCH] chore: archived cycles and mpdules (#4126) --- apiserver/plane/app/views/workspace/cycle.py | 1 + apiserver/plane/app/views/workspace/module.py | 1 + 2 files changed, 2 insertions(+) diff --git a/apiserver/plane/app/views/workspace/cycle.py b/apiserver/plane/app/views/workspace/cycle.py index ea081cf99..e85fa1cef 100644 --- a/apiserver/plane/app/views/workspace/cycle.py +++ b/apiserver/plane/app/views/workspace/cycle.py @@ -27,6 +27,7 @@ class WorkspaceCyclesEndpoint(BaseAPIView): .select_related("project") .select_related("workspace") .select_related("owned_by") + .filter(archived_at__isnull=False) .annotate( total_issues=Count( "issue_cycle", diff --git a/apiserver/plane/app/views/workspace/module.py b/apiserver/plane/app/views/workspace/module.py index 8dd5e97f4..085787694 100644 --- a/apiserver/plane/app/views/workspace/module.py +++ b/apiserver/plane/app/views/workspace/module.py @@ -30,6 +30,7 @@ class WorkspaceModulesEndpoint(BaseAPIView): .select_related("workspace") .select_related("lead") .prefetch_related("members") + .filter(archived_at__isnull=False) .prefetch_related( Prefetch( "link_module",