Skip to content
This repository has been archived by the owner on Nov 9, 2019. It is now read-only.

As an authenticated User: I can cast my vote(s) for the best project #38

Open
Bouncey opened this issue Nov 3, 2018 · 4 comments
Open
Assignees
Labels
Critical enhancement New feature or request help wanted Extra attention is needed

Comments

@Bouncey
Copy link
Member

Bouncey commented Nov 3, 2018

Condition required for access to voting

  • My site has attained some aggregated threshold lighthouse score, @QuincyLarson to advise

Voting rules:

  • as a User:
    • My team can only vote once for a team
    • My team has a maximum of three votes
  • Votes can only be cast before the cut-off time, @QuincyLarson to advise

Voting API:

  • Vote counts can be accessed at /api/votes/count
  • The above route should not be in a hyperlink
  • Vote counts can only be accessed by the judging panel, @QuincyLarson to provide a list of github usernames for all that should have access.
  • The vote count should be a sorted, human readable list of team name, site link and vote count.
  • Cast votes should not be accessible from any API.
@Bouncey Bouncey created this issue from a note in 2018 JAMstack Hackathon MVP (To do) Nov 3, 2018
@Bouncey Bouncey added enhancement New feature or request help wanted Extra attention is needed Critical labels Nov 3, 2018
@Bouncey
Copy link
Member Author

Bouncey commented Nov 3, 2018

My thinking is, we have a model relationship of Team -----hasOne----> Vote

Vote will have a schema of

{
  canVote: Boolean,
  votesFor: [String], // most probably team._id of the teams voted for
  recievedVotes: [String] // team._id's of teams that voted for this team
}

@Bouncey Bouncey self-assigned this Nov 3, 2018
@QuincyLarson
Copy link
Contributor

Since we had fewer than 100 online hackathon teams, we think the judges can personally review these, so we don't need to create a voting system. We can do this later for future hackathons though. Closing this for now.

@raisedadead
Copy link
Member

Reopening just so that this not forgotten.

@raisedadead raisedadead reopened this Nov 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Critical enhancement New feature or request help wanted Extra attention is needed
Projects
Development

No branches or pull requests

4 participants
@QuincyLarson @raisedadead @Bouncey and others