diff --git a/apiserver/plane/api/serializers/issue.py b/apiserver/plane/api/serializers/issue.py index 7376cf0ff..540ea9097 100644 --- a/apiserver/plane/api/serializers/issue.py +++ b/apiserver/plane/api/serializers/issue.py @@ -534,11 +534,11 @@ class IssueLiteSerializer(BaseSerializer): class IssueSubscriberSerializer(BaseSerializer): + project = serializers.PrimaryKeyRelatedField(read_only=True) + workspace = serializers.PrimaryKeyRelatedField(read_only=True) + issue = serializers.PrimaryKeyRelatedField(read_only=True) + subscriber = serializers.PrimaryKeyRelatedField(read_only=True) + class Meta: model = IssueSubscriber fields = "__all__" - read_only_fields = [ - "workspace", - "project", - "issue", - ] diff --git a/apiserver/plane/api/urls.py b/apiserver/plane/api/urls.py index 9edd92867..bf370063a 100644 --- a/apiserver/plane/api/urls.py +++ b/apiserver/plane/api/urls.py @@ -801,34 +801,16 @@ urlpatterns = [ ## End IssueComments # Issue Subscribers path( - "workspaces//projects//issues//issue-subscribers/", + "workspaces//projects//issues//subscribers/", IssueSubscriberViewSet.as_view( { "get": "list", "post": "create", - } - ), - name="project-issue-subscriber", - ), - path( - "workspaces//projects//issues//issue-subscribers/", - IssueSubscriberViewSet.as_view( - { "delete": "destroy" } ), name="project-issue-subscriber", ), - path( - "workspaces//projects//issues//subscribe/", - IssueSubscriberViewSet.as_view( - { - "get": "subscription_status", - "post": "subscribe", - } - ), - name="project-issue-subscriber", - ), ## End Issue Subscribers ## IssueProperty path(