dev: update issue webhooks for cycle and module

This commit is contained in:
pablohashescobar 2024-05-01 15:55:08 +05:30
parent fe68e14d8b
commit e6db09945c
6 changed files with 10 additions and 11 deletions

View File

@ -515,7 +515,7 @@ class CycleArchiveUnarchiveAPIEndpoint(BaseAPIView):
return Response(status=status.HTTP_204_NO_CONTENT) return Response(status=status.HTTP_204_NO_CONTENT)
class CycleIssueAPIEndpoint(WebhookMixin, BaseAPIView): class CycleIssueAPIEndpoint(BaseAPIView):
""" """
This viewset automatically provides `list`, `create`, This viewset automatically provides `list`, `create`,
and `destroy` actions related to cycle issues. and `destroy` actions related to cycle issues.

View File

@ -32,7 +32,6 @@ from plane.api.serializers import (
LabelSerializer, LabelSerializer,
) )
from plane.app.permissions import ( from plane.app.permissions import (
WorkspaceEntityPermission,
ProjectEntityPermission, ProjectEntityPermission,
ProjectLitePermission, ProjectLitePermission,
ProjectMemberPermission, ProjectMemberPermission,
@ -49,7 +48,7 @@ from plane.db.models import (
ProjectMember, ProjectMember,
) )
from .base import BaseAPIView, WebhookMixin from .base import BaseAPIView
class WorkspaceIssueAPIEndpoint(BaseAPIView): class WorkspaceIssueAPIEndpoint(BaseAPIView):
@ -656,7 +655,7 @@ class IssueLinkAPIEndpoint(BaseAPIView):
return Response(status=status.HTTP_204_NO_CONTENT) return Response(status=status.HTTP_204_NO_CONTENT)
class IssueCommentAPIEndpoint(WebhookMixin, BaseAPIView): class IssueCommentAPIEndpoint(BaseAPIView):
""" """
This viewset automatically provides `list`, `create`, `retrieve`, This viewset automatically provides `list`, `create`, `retrieve`,
`update` and `destroy` actions related to comments of the particular issue. `update` and `destroy` actions related to comments of the particular issue.

View File

@ -260,7 +260,7 @@ class ModuleAPIEndpoint(WebhookMixin, BaseAPIView):
return Response(status=status.HTTP_204_NO_CONTENT) return Response(status=status.HTTP_204_NO_CONTENT)
class ModuleIssueAPIEndpoint(WebhookMixin, BaseAPIView): class ModuleIssueAPIEndpoint(BaseAPIView):
""" """
This viewset automatically provides `list`, `create`, `retrieve`, This viewset automatically provides `list`, `create`, `retrieve`,
`update` and `destroy` actions related to module issues. `update` and `destroy` actions related to module issues.

View File

@ -23,7 +23,7 @@ from rest_framework.response import Response
from rest_framework import status from rest_framework import status
# Module imports # Module imports
from .. import BaseViewSet, WebhookMixin from .. import BaseViewSet
from plane.app.serializers import ( from plane.app.serializers import (
IssueSerializer, IssueSerializer,
CycleIssueSerializer, CycleIssueSerializer,
@ -40,7 +40,7 @@ from plane.bgtasks.issue_activites_task import issue_activity
from plane.utils.issue_filters import issue_filters from plane.utils.issue_filters import issue_filters
class CycleIssueViewSet(WebhookMixin, BaseViewSet): class CycleIssueViewSet(BaseViewSet):
serializer_class = CycleIssueSerializer serializer_class = CycleIssueSerializer
model = CycleIssue model = CycleIssue

View File

@ -11,7 +11,7 @@ from rest_framework.response import Response
from rest_framework import status from rest_framework import status
# Module imports # Module imports
from .. import BaseViewSet, WebhookMixin from .. import BaseViewSet
from plane.app.serializers import ( from plane.app.serializers import (
IssueCommentSerializer, IssueCommentSerializer,
CommentReactionSerializer, CommentReactionSerializer,
@ -25,7 +25,7 @@ from plane.db.models import (
from plane.bgtasks.issue_activites_task import issue_activity from plane.bgtasks.issue_activites_task import issue_activity
class IssueCommentViewSet(WebhookMixin, BaseViewSet): class IssueCommentViewSet(BaseViewSet):
serializer_class = IssueCommentSerializer serializer_class = IssueCommentSerializer
model = IssueComment model = IssueComment
webhook_event = "issue_comment" webhook_event = "issue_comment"

View File

@ -16,7 +16,7 @@ from rest_framework.response import Response
from rest_framework import status from rest_framework import status
# Module imports # Module imports
from .. import BaseViewSet, WebhookMixin from .. import BaseViewSet
from plane.app.serializers import ( from plane.app.serializers import (
ModuleIssueSerializer, ModuleIssueSerializer,
IssueSerializer, IssueSerializer,
@ -33,7 +33,7 @@ from plane.bgtasks.issue_activites_task import issue_activity
from plane.utils.issue_filters import issue_filters from plane.utils.issue_filters import issue_filters
class ModuleIssueViewSet(WebhookMixin, BaseViewSet): class ModuleIssueViewSet(BaseViewSet):
serializer_class = ModuleIssueSerializer serializer_class = ModuleIssueSerializer
model = ModuleIssue model = ModuleIssue
webhook_event = "module_issue" webhook_event = "module_issue"