-
Notifications
You must be signed in to change notification settings - Fork 32
Add required majority fields #3219
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
base: main
Are you sure you want to change the base?
Conversation
Add some tests and add docs.
luisa-beerboom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am guessing no_majority is the description for the system we had until now.
Given that it is also the default, why not just use None instead? I am guessing that would functionally work the same.
One enum value less, no default setting necessary since it will still be None if left empty (therefore one less loop the automatic action logic will have to go through), and no need to think about possibly having to migrate past polls.
|
I will look, if I can use the None case for 'no_majority'. |
The None case is used for the old behaviour/'no_majority'.
|
@luisa-beerboom Now the code uses the None case for the old behaviour. So I suppose, that no migration is needed. The default is None for the three fields. Please have a look. |
|
It shows that the missing of the 'no_majority' option complicates things in the client. So I revert it. |
This reverts commit 06d95fa.
|
Wouldn't you need a migration to fill in the field for old polls then? |
Resolve #3199
Add some tests and add docs. Update the test data in some tests.
@luisa-beerboom please review.