Skip to content

feat: add ability hide votes if you cannot vote - #121

Merged
BigSpaceships merged 2 commits into
devfrom
hide-ineligible
Oct 3, 2026
Merged

BigSpaceships merged 2 commits into
devfrom
hide-ineligible

Conversation

@BigSpaceships

Copy link
Copy Markdown
Contributor

What

Add option to hide votes from people who can't vote

Why

At 6 weeks we need secret votes and frosh shouldn't be able to see those

Test Plan

Locally, remove myself from eligible votes and see if I can see

Env Vars

Nope

Documentation

Nope

Checklist

  • Tested all changes locally

@BigSpaceships

Copy link
Copy Markdown
Contributor Author

AGH it was so dumb

@BigSpaceships

Copy link
Copy Markdown
Contributor Author

now it's just coverage

@costowell costowell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good overall, just small nits.

Comment thread api.go Outdated
polls := []*database.Poll{}

for i := range pollResults {
poll := pollResults[i]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you can do this

for i, poll := range pollResults {

@csh-sonarqube-community

Copy link
Copy Markdown

Failed Quality Gate failed

  • 0.00% Coverage on New Code (is less than 80.00%)

Project ID: ComputerScienceHouse_vote_c5ba863d-30d7-4fa9-97dd-4f2c58f8f5fa

View in SonarQube

@BigSpaceships
BigSpaceships merged commit fbdba3b into dev Oct 3, 2026
2 of 3 checks passed
@BigSpaceships
BigSpaceships deleted the hide-ineligible branch October 3, 2026 15:27
BigSpaceships added a commit that referenced this pull request Oct 3, 2026
* Bootstrap 5 upgrade (#106)

* Changed all status codes to the http.StatusCode equivalent. Also changed some 500s to 400s where appropriate to indicate user error (#85)

* Started working on navbar

* More progress

* working theme selector

* Eboard vote link appears on all pages

* Started working on navbar

* More progress

* working theme selector

* Rebase with dev

* Finished rebasing with dev

* Added favicon import

* Misc other stuff, navbar is responsive now

* larger nav title

* Quorum text input, create page basically done

* Finished poll creation page

* Ranked choice poll page is done

* Actually use the hidden template

* changed icon

* Fixed vote count on eboard votes

* Added display of total votes submitted to results

* small fixes

* fixed spacing between buttons for eboard vote on mobile

* poll title wrapping in a different place

* Changed underline to bold

* Capitalize description placeholder text

---------

Co-authored-by: Noah Hanford <bigspaceships56@gmail.com>

* Fixed count of votes cast (#108)

* Fixed count of votes cast

* Misc fixes

* changed perferred to preferred lol

* fix count reporting

* Limited poll title character length to 250 (#115)

* Limited poll title character length to 250

* Added backend validation for poll title length

---------

Co-authored-by: Joseph Rosso <jdr1652@rit.edu>

* fix: revert go version stuff

* Fix empty voter in list and also moved documentation (#119)

* feat: update running env stuff

* fix: empty username in the eligible voters

* feat: add ability hide votes if you cannot vote (#121)

* feat: add ability hide votes if you cannot vote

* fix: better for loop

* fix: formatting

---------

Co-authored-by: pikachu0542 <112343747+pikachu0542@users.noreply.github.com>
Co-authored-by: aln730 <arnavgawas707@gmail.com>
Co-authored-by: FlyingCowMaster <flyingcowmaster@gmail.com>
Co-authored-by: Joseph Rosso <jdr1652@rit.edu>
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.

2 participants