From 320608ea73ac3bd043250369af5601ac8921540b Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:32:58 +0530 Subject: [PATCH] chore: return issue votes in public issue list endpoint (#2026) --- apiserver/plane/api/serializers/issue.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apiserver/plane/api/serializers/issue.py b/apiserver/plane/api/serializers/issue.py index 2a75b2f48..1f4d814a4 100644 --- a/apiserver/plane/api/serializers/issue.py +++ b/apiserver/plane/api/serializers/issue.py @@ -681,6 +681,7 @@ class IssuePublicSerializer(BaseSerializer): project_detail = ProjectLiteSerializer(read_only=True, source="project") state_detail = StateLiteSerializer(read_only=True, source="state") issue_reactions = IssueReactionLiteSerializer(read_only=True, many=True) + votes = IssueVoteSerializer(read_only=True, many=True) class Meta: model = Issue @@ -697,6 +698,7 @@ class IssuePublicSerializer(BaseSerializer): "priority", "target_date", "issue_reactions", + "votes", ] read_only_fields = fields