This PR allows to specify group categories that should be taken into account for the plurality score calculation by question_id.
However, there is one complicating factor. Our main grouping dimension affiliation is not related to a group category. Therefore, we must allow for it to be a group category of type null in the usersToGroups table. Nevertheless this is not a group category in the group categories table becaus it cannot have an id that is not null.
This PR allows to specify group categories that should be taken into account for the plurality score calculation by
question_id
.However, there is one complicating factor. Our main grouping dimension
affiliation
is not related to a group category. Therefore, we must allow for it to be a group category of typenull
in theusersToGroups
table. Nevertheless this is not a group category in the group categories table becaus it cannot have an id that is not null.requiring a group category id would simplify the code dramatically. We should think it implement the following migration prior to the event: https://github.com/lexicongovernance/pluraltools-backend/issues/300