Skip to content

Conversation

@BigSpaceships
Copy link
Contributor

How to test: make ranked choice vote with write in and then do all of the above (it doesn't crash now)

@tallen42 tallen42 merged commit 0f2544d into dev Nov 24, 2025
@shaeespring
Copy link
Contributor

It looks like if I rank 2 votes with the same vote (i.e. choice 1 has rank choice 1 and choice 2 has rank choice 1) it doesn't throw an error

@shaeespring shaeespring mentioned this pull request Dec 24, 2025
Merged
@BigSpaceships BigSpaceships deleted the fix-writein-ranked branch January 13, 2026 15:02
shaeespring added a commit that referenced this pull request Jan 20, 2026
* fixed bug where it would crash if you filled in all canidates + write in (#46)

* Check that candidates are not ranked identically (#47)

* Check that candidates are not ranked identically

* fix bug where write in candidates weren't checked for duplicate rankings

* simplified range cause yeah

* i think i actually fixed it this time

* http response for consistency

* removed extra period

---------

Co-authored-by: Noah <[email protected]>

* Always stop once the majority is hit (#50) @tallen42

* Always stop at majority

* End is always true if finalResult is calculated

* If hidden, say results soon, otherwise URL (#51) @tallen42

* yippee sonarqube support (#54) @Will-Hellinger

* Set up golang CI

* go mod tidy

* gofmt

* Allow hiding results while poll is open

this replaces the current hide functionality

* Clarify dev setup for compose

* go mod download as a separate layer for caching

* Allow alumni to dev

* Make polls modifiable by removing Reveal

Polls that are hidden really shouldn't be revealed

* Create dev mode evals override

* Clarify gatekeep autoclose for evals

* Initial setup for golang tests

* Rewrite orderOptions to avoid hanging

Also write tests

* Run go vet

* Maintainability (#58)

* min number and cognitive complexity

* variable name

* revert match constant and import math

* Logging dependabot readme pr template (#59)

* remove debug log call and added dev flags log messages

* update readme with some todos

* Create pull request template

* Add Dependabot configuration for Go modules

* oops forgot target-branch

---------

Co-authored-by: Noah Hanford <[email protected]>
Co-authored-by: Tyler Allen <[email protected]>
Co-authored-by: William Hellinger <[email protected]>
Co-authored-by: Max Meinhold <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants