Skip to content

Conversation

@reiterl
Copy link
Member

@reiterl reiterl commented Nov 26, 2025

Resolve #3199

Add some tests and add docs. Update the test data in some tests.

@luisa-beerboom please review.

Add some tests and add docs.
@reiterl reiterl added this to the 4.3 milestone Nov 26, 2025
@reiterl reiterl added feature Röntgen projectname Zeeman projectname labels Nov 26, 2025
Copy link
Member

@luisa-beerboom luisa-beerboom left a 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.

@luisa-beerboom luisa-beerboom removed their assignment Nov 26, 2025
@reiterl
Copy link
Member Author

reiterl commented Nov 27, 2025

I will look, if I can use the None case for 'no_majority'.

The None case is used for the old behaviour/'no_majority'.
@reiterl
Copy link
Member Author

reiterl commented Nov 27, 2025

@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.

@reiterl
Copy link
Member Author

reiterl commented Nov 28, 2025

It shows that the missing of the 'no_majority' option complicates things in the client. So I revert it.
I want a clear "no_majoirty" option here.

@luisa-beerboom
Copy link
Member

Wouldn't you need a migration to fill in the field for old polls then?

@luisa-beerboom luisa-beerboom removed their assignment Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Röntgen projectname Zeeman projectname

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Motions/Elections: Required majorities

2 participants