Skip to content

Conversation

@shaeespring
Copy link
Contributor

@shaeespring shaeespring commented Dec 24, 2025

Summary

Adds CI and initial setup for tests #53
Allow hiding results while poll is open #52
Adds SonarQube #54
Hides Poll URL if vote is hidden #51
Stops Ranking if the majority is hit #50
Check if candidates are identical #47
Fixed crashing bug #46

Testing


Voted for filling in all candidates and a write-in 👍 Doesn't crash
After a poll is hidden, it should not be revealable 👍 Reveal button is removed
Creating a vote with the "hide results until poll closes" button 👍 Works
Ending a vote with above's parameters 👍 After the vote is ended, people can see results
write ins on non-custom votes 👍 works and cannot be duplicated (rank or choice)
custom votes accept write-ins 👍
custom votes handle the duplicated rank/choice 👍
Ranking 1 and 3 (but not 2) works. It does this not as a write in too 👍 (@BigSpaceships)
Tests pass running go test in the database folder 👍

Testing not Done

Anything with the bot
Does sonarqube work
Can alumni do testing stuff with their local environment if that environment variable is set? (@mxmeinhold could, so the answer is likely yes)

Notes:

There's a couple of maintainability issues flagged by sonarqube from this PR.
https://sonarqube.csh.rit.edu/project/issues?createdInLast=1w&issueStatuses=CONFIRMED%2COPEN&id=ComputerScienceHouse_vote_c5ba863d-30d7-4fa9-97dd-4f2c58f8f5fa

BigSpaceships and others added 18 commits November 23, 2025 22:53
* 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 <bigspaceships56@gmail.com>
* Always stop at majority

* End is always true if finalResult is calculated
this replaces the current hide functionality
Polls that are hidden really shouldn't be revealed
@BigSpaceships
Copy link
Contributor

I think that ranking 1 and 3 works. It does this not as a write in too
image
image

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.

6 participants