From 8288e1363c7cb1f2124d9eb45757d1ba79ca2112 Mon Sep 17 00:00:00 2001 From: NarayanBavisetti Date: Mon, 22 Jan 2024 13:48:54 +0530 Subject: [PATCH] chore: project and workspace state change --- apiserver/plane/app/views/state.py | 14 ++++++++++++-- apiserver/plane/app/views/workspace.py | 10 +++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/apiserver/plane/app/views/state.py b/apiserver/plane/app/views/state.py index 232d19aee..7f56dd247 100644 --- a/apiserver/plane/app/views/state.py +++ b/apiserver/plane/app/views/state.py @@ -49,8 +49,18 @@ class StateViewSet(BaseViewSet): return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) def list(self, request, slug, project_id): - states = State.objects.filter(workspace__slug=slug, project_id=project_id).values( - "id", "project_id", "workspace__slug", "name", "color", "group" + states = State.objects.filter( + workspace__slug=slug, project_id=project_id + ).values( + "id", + "project_id", + "workspace__slug", + "name", + "color", + "group", + "default", + "description", + "sequence", ) grouped = request.GET.get("grouped", False) if grouped == "true": diff --git a/apiserver/plane/app/views/workspace.py b/apiserver/plane/app/views/workspace.py index be89eedbb..f4e488f52 100644 --- a/apiserver/plane/app/views/workspace.py +++ b/apiserver/plane/app/views/workspace.py @@ -1469,7 +1469,15 @@ class WorkspaceStatesEndpoint(BaseAPIView): workspace__slug=slug, project__project_projectmember__member=request.user, ).values( - "id", "project_id", "workspace__slug", "name", "color", "group" + "id", + "project_id", + "workspace__slug", + "name", + "color", + "group", + "default", + "description", + "sequence", ) return Response(states, status=status.HTTP_200_OK)