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

answers could be derived from answerType #704

Merged
merged 3 commits into from
Oct 23, 2023

Conversation

jelhan
Copy link
Owner

@jelhan jelhan commented Oct 21, 2023

The answers property of Poll could be derived from answerType. No need to store the information twice.

In a follow-up RP the selection could be simplified to be an array of strings. The strings are either 'yes' or 'no' if answerType is YesNo, 'yes', 'maybe', 'no' if answerType is YesNoMaybe or the value entered by the user if answer type is Freetext.

@jelhan jelhan merged commit 748b17e into master Oct 23, 2023
12 checks passed
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

Successfully merging this pull request may close these issues.

1 participant