merefield
(Robert)
November 5, 2024, 9:47pm
1
STR:
Initially all options are set to abstain
Correctly, the Vote button is disabled
Select one option and give it a rank
Correctly, the Vote button is now enabled!
Change it back to Abstain
The Vote button is still active and it’s possible to vote to completely Abstain!
This is pointless as the algorithm ignores all abstained options so this should be prevented so as not to record pointless votes and waste database rows.
@nat discovered this, I’m just recording it!
3 Likes
merefield
(Robert)
November 5, 2024, 9:48pm
2
But have no fear, @merefield is here! :
discourse:main
← merefield:fix_cast_ranked_vote_when_all_abstain
opened 06:14PM - 05 Nov 24 UTC
* FIX: front-end: prevent voting when all ranked choice votes are "Abstain"
* F… IX: API: return an error when there is a call to vote on ranked choice where all votes are "Abstain".
* FIX: Database: add migration to delete historic collections of zero rank votes (grouped by user/poll).
* FIX: Model: missing annotation.
@nattsw
6 Likes