Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vote cycle should be refreshed based on calls to the /votes endpoint #31

Open
austinpray opened this issue Aug 3, 2015 · 0 comments
Open
Assignees
Milestone

Comments

@austinpray
Copy link
Member

#29 (comment)

It should definitely reset based on calls to /votes. Couple reasons:

  • If nobody is making calls to /votes, nobody is on the website voting and the robot shouldn't be doing anything. "If a tree falls in the forest..."
  • One should be able to work on the front-end without a real robot calling the endpoint
  • Avoids race conditions where the client and robot's polling is slightly out of sync. The votes endpoint will always have accurate information regardless of the behavior of the robot.
@austinpray austinpray added this to the 1.0.0 milestone Aug 3, 2015
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

No branches or pull requests

2 participants