mirror of
https://github.com/makeplane/plane.git
synced 2026-02-25 04:35:21 +01:00
Merge pull request #4717 from makeplane/chore/deploy-board-fields
chore: deploy board fields changes
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user