From c03550656ada0c0ce3dca134b618051375b6232a Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Fri, 1 Sep 2023 15:58:25 +0530 Subject: [PATCH] chore: vote actor details (#2047) * chore: vote actor details * dev: add field in serializer * dev: remove _id in workspace and project --- apiserver/plane/api/serializers/issue.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apiserver/plane/api/serializers/issue.py b/apiserver/plane/api/serializers/issue.py index fd6369a73..938c7cab4 100644 --- a/apiserver/plane/api/serializers/issue.py +++ b/apiserver/plane/api/serializers/issue.py @@ -549,9 +549,12 @@ class CommentReactionSerializer(BaseSerializer): class IssueVoteSerializer(BaseSerializer): + + actor_detail = UserLiteSerializer(read_only=True, source="actor") + class Meta: model = IssueVote - fields = ["issue", "vote", "workspace_id", "project_id", "actor"] + fields = ["issue", "vote", "workspace", "project", "actor", "actor_detail"] read_only_fields = fields