-
Notifications
You must be signed in to change notification settings - Fork 19
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
WIP Configuring Number of Winners > Number of Declared Candidates results in confusing error message #797
Comments
Since winners can be confirmed by the naked eye, without RCTab ever getting involved, I'm going to prioritize this is a P2. |
I'm implementing allowing this to proceed, but I realize that we may need some customized behavior here depending on statute. I can see two types of statutes being out there:
Versus:
The difference is this: I have assumed that we only care about the former, since that's what all statutes I've read do, but I do want to flag this assumption |
RCTab Version: 1.4.0 and 1.3.1
What Happened
If you configure Number of Winners > the number of candidates you have configured in the Candidates tab you get the following error
2024-02-15 08:55:30 EST SEVERE: numberOfWinners must be an integer from 0 to [numberOfConfiguredCandidates]!
from line 700 in ContestConfig.java in 1.4.0
So for example I configured one candidate and set the Number of Winners to 3 and got
I imagine this check failed validation because when you have less configured candidates than the configured number of winners you don't need to run any tabulation rounds: each configured candidate is automatically elected. If I only have two candidates running for 3 City Council seats then I don't need to count any votes to know that those two will be elected.
What I Expect To Happen
A more detailed message like
OR
Another option we are discussing is to let this pass config validation. When it gets to the tabulation I expect it will get to the logic that says "Do we have less continuing candidates than the configured number of winners? If so, elect them"
I lean towards RCTab producing output with winners in this example, because that can be certified as an election result whereas this halting exception cannot.
The text was updated successfully, but these errors were encountered: