Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requesting suggestions for getting gender stats for open ended questions through Poll API #849

Open
alviriseup opened this issue Dec 23, 2021 · 0 comments

Comments

@alviriseup
Copy link
Contributor

We have come across a scenario where we are unable to get the gender_response_rate data of a poll (featured or otherwise) from /api/v1/polls/{id}/ or /api/v1/polls/org/{org} call alone when we have an "open_ended": true question as the top question of the poll.

uqRYZFI1Qhk7

Hence, we were wondering if there is a way to get the gender_stats for open ended questions without changing the current API results format since other apps/services may also be using the same API?

In case the above is not possible, we would start working on modifying the Polls API in order to get the gender_stats for open ended questions as well (which currently is only available for non-open ended questions to our knowledge). Or should we look towards modifying the serializers instead?

def get_questions(self, obj):

Requesting suggestions from others on the best direction to take regarding this matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant