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

Stop splitting strings by magic semicolons #116

Merged
merged 5 commits into from
Jan 18, 2024
Merged

Conversation

PurkkaKoodari
Copy link
Member

Fixes #92. The app now natively handles answer options and multiple checkbox answers as arrays, instead of splitting strings by semicolon.

The migration for this does a best effort translation of the data in the DB. I don't think we can do much better. Importantly, the previous implementation made no difference between "selected empty option" and "selected no options" – the migration guesses the latter.

Along the way, I added transactions to the migration system and disabled Ajv type coercion. (Coercion was breaking anyOf unions, and I really don't think we'll need it anywhere. I guess we'll see...)

@PurkkaKoodari PurkkaKoodari merged commit 4089166 into dev Jan 18, 2024
1 check passed
@PurkkaKoodari PurkkaKoodari deleted the fix/answer-semicolons branch January 18, 2024 18:02
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.

Allow answer options with semicolons
2 participants