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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Free text field for multiple choice answers #3134

Merged
merged 19 commits into from
Apr 9, 2018

Conversation

deivid-rodriguez
Copy link
Contributor

馃帺 What? Why?

This PR adds a new feature to multiple choice questions. It allows any option to be configured as a "free text" option, meaning that the user can enter a custom value when selecting the option.

Previously both the available answers for a question and the options the user selected on each answer were stored in jsonb hashes in single DB columns. I found it really hard and prone to errors and bad user experience to implement this feature on top of that, so I upgraded both to fully fledged models.

This PR sits on top of #3133 , so that one should be reviewed first. I splitted it to make reviewing easier and minify the diff.

馃搶 Related Issues

None.

馃搵 Subtasks

  • Add CHANGELOG entry

馃摲 Screenshots (optional)

customoptions

@ghost ghost assigned deivid-rodriguez Apr 5, 2018
@ghost ghost added the status: WIP label Apr 5, 2018
@deivid-rodriguez deivid-rodriguez force-pushed the free_text_field_for_multiple_choice_answers branch 4 times, most recently from 13c9389 to 0990c68 Compare April 5, 2018 23:40
@deivid-rodriguez deivid-rodriguez force-pushed the free_text_field_for_multiple_choice_answers branch from 0990c68 to a68b241 Compare April 6, 2018 13:23
@josepjaume josepjaume merged commit 3b08c90 into master Apr 9, 2018
@josepjaume josepjaume deleted the free_text_field_for_multiple_choice_answers branch April 9, 2018 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants