From 4cccf79ed9b7d84d7110aad2779786809e73aa72 Mon Sep 17 00:00:00 2001 From: NarayanBavisetti Date: Thu, 6 Jun 2024 13:13:29 +0530 Subject: [PATCH] chore: space key changes --- apiserver/plane/space/views/issue.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/apiserver/plane/space/views/issue.py b/apiserver/plane/space/views/issue.py index 01da67752..71ba0f6a7 100644 --- a/apiserver/plane/space/views/issue.py +++ b/apiserver/plane/space/views/issue.py @@ -80,7 +80,7 @@ class IssueCommentPublicViewSet(BaseViewSet): anchor=self.kwargs.get("anchor"), entity_name="project", ) - if project_deploy_board.comments: + if project_deploy_board.is_comments_enabled: return self.filter_queryset( super() .get_queryset() @@ -111,7 +111,7 @@ class IssueCommentPublicViewSet(BaseViewSet): anchor=anchor, entity_name="project" ) - if not project_deploy_board.comments: + if not project_deploy_board.is_comments_enabled: return Response( {"error": "Comments are not enabled for this project"}, status=status.HTTP_400_BAD_REQUEST, @@ -155,7 +155,7 @@ class IssueCommentPublicViewSet(BaseViewSet): anchor=anchor, entity_name="project" ) - if not project_deploy_board.comments: + if not project_deploy_board.is_comments_enabled: return Response( {"error": "Comments are not enabled for this project"}, status=status.HTTP_400_BAD_REQUEST, @@ -186,7 +186,7 @@ class IssueCommentPublicViewSet(BaseViewSet): anchor=anchor, entity_name="project" ) - if not project_deploy_board.comments: + if not project_deploy_board.is_comments_enabled: return Response( {"error": "Comments are not enabled for this project"}, status=status.HTTP_400_BAD_REQUEST, @@ -221,7 +221,7 @@ class IssueReactionPublicViewSet(BaseViewSet): workspace__slug=self.kwargs.get("slug"), project_id=self.kwargs.get("project_id"), ) - if project_deploy_board.reactions: + if project_deploy_board.is_reactions_enabled: return ( super() .get_queryset() @@ -240,7 +240,7 @@ class IssueReactionPublicViewSet(BaseViewSet): anchor=anchor, entity_name="project" ) - if not project_deploy_board.reactions: + if not project_deploy_board.is_reactions_enabled: return Response( {"error": "Reactions are not enabled for this project board"}, status=status.HTTP_400_BAD_REQUEST, @@ -282,7 +282,7 @@ class IssueReactionPublicViewSet(BaseViewSet): anchor=anchor, entity_name="project" ) - if not project_deploy_board.reactions: + if not project_deploy_board.is_reactions_enabled: return Response( {"error": "Reactions are not enabled for this project board"}, status=status.HTTP_400_BAD_REQUEST, @@ -320,7 +320,7 @@ class CommentReactionPublicViewSet(BaseViewSet): project_deploy_board = DeployBoard.objects.get( anchor=self.kwargs.get("anchor"), entity_name="project" ) - if project_deploy_board.reactions: + if project_deploy_board.is_reactions_enabled: return ( super() .get_queryset() @@ -339,7 +339,7 @@ class CommentReactionPublicViewSet(BaseViewSet): anchor=anchor, entity_name="project" ) - if not project_deploy_board.reactions: + if not project_deploy_board.is_reactions_enabled: return Response( {"error": "Reactions are not enabled for this board"}, status=status.HTTP_400_BAD_REQUEST, @@ -380,7 +380,7 @@ class CommentReactionPublicViewSet(BaseViewSet): project_deploy_board = DeployBoard.objects.get( anchor=anchor, entity_name="project" ) - if not project_deploy_board.reactions: + if not project_deploy_board.is_reactions_enabled: return Response( {"error": "Reactions are not enabled for this board"}, status=status.HTTP_400_BAD_REQUEST, @@ -422,7 +422,7 @@ class IssueVotePublicViewSet(BaseViewSet): workspace__slug=self.kwargs.get("anchor"), entity_name="project", ) - if project_deploy_board.votes: + if project_deploy_board.is_votes_enabled: return ( super() .get_queryset()