lexicongovernance / pluraltools-backend

Backend implementation of the plural voting tool.
https://demo.lexicongovernance.org/
GNU General Public License v3.0
3 stars 1 forks source link

Pre Release Next v2.5.1 #345

Closed MartinBenediktBusch closed 4 months ago

MartinBenediktBusch commented 4 months ago

Note

This PR should only be merged to develop once the admin feature to handle the the transition from registrations to question options gets developed (please review the admin feature: https://github.com/lexicongovernance/pluraltools-admin/pull/99)

Database and Service changes

The PR itself removes the questionOptionType column which can be either Title, Subtitle, or Null from registration fields,including the functionality to pass this data to the question options table. Furthermore, this PR removes the questionId column in registrationFields.

Furthermore, I kept the registrationId and userId in the `questionOptions table to be able to uniquely identify a question option by user and registration. Furthermore, setting registrationId and userId equal to null retains the functionality to set custom question options that are defined by us.

Seed changes