mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
Revert "feat: added CRUD operation for issue subscriber"
This reverts commit b22e062576
.
This commit is contained in:
parent
b22e062576
commit
9c0a2b74b3
@ -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",
|
||||
]
|
||||
|
@ -801,34 +801,16 @@ urlpatterns = [
|
||||
## End IssueComments
|
||||
# Issue Subscribers
|
||||
path(
|
||||
"workspaces/<str:slug>/projects/<uuid:project_id>/issues/<uuid:issue_id>/issue-subscribers/",
|
||||
"workspaces/<str:slug>/projects/<uuid:project_id>/issues/<uuid:issue_id>/subscribers/",
|
||||
IssueSubscriberViewSet.as_view(
|
||||
{
|
||||
"get": "list",
|
||||
"post": "create",
|
||||
}
|
||||
),
|
||||
name="project-issue-subscriber",
|
||||
),
|
||||
path(
|
||||
"workspaces/<str:slug>/projects/<uuid:project_id>/issues/<uuid:issue_id>/issue-subscribers/<uuid:subscriber_id>",
|
||||
IssueSubscriberViewSet.as_view(
|
||||
{
|
||||
"delete": "destroy"
|
||||
}
|
||||
),
|
||||
name="project-issue-subscriber",
|
||||
),
|
||||
path(
|
||||
"workspaces/<str:slug>/projects/<uuid:project_id>/issues/<uuid:issue_id>/subscribe/",
|
||||
IssueSubscriberViewSet.as_view(
|
||||
{
|
||||
"get": "subscription_status",
|
||||
"post": "subscribe",
|
||||
}
|
||||
),
|
||||
name="project-issue-subscriber",
|
||||
),
|
||||
## End Issue Subscribers
|
||||
## IssueProperty
|
||||
path(
|
||||
|
Loading…
Reference in New Issue
Block a user