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

Bet creators can resolve a bet #72

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

ghost
Copy link

@ghost ghost commented Apr 11, 2017

Pivotal: https://www.pivotaltracker.com/story/show/140513953

  • Added a button on the bet page (available only for the bet creator) that takes the user to the page, which allows the bet creator to pick a winning option and resolve the bet.
  • After the button is clicked, the bet will become inaccessible for placing wagers and resolving it again.

@ghost ghost changed the title Bet creators can resolve a bet redone Bet creators can resolve a bet Apr 11, 2017
- No validation has been performed at this stage;
- Bet can be resolved multiple times;
-It will keep track of which bet has been already resolved.
-Users won't be able to place their wagers on the particular bet
if it has already been resolved.
- Can't resolve a bet without picking an option first.
- Prevents users from accessing bets/:id/resolve if they are not the bet
  creators.
- Prevent users from accessing the bet/resolve link if the bet has
  already been resolved.
@ghost ghost force-pushed the bet_creators_can_resolve_a_bet_redone branch from f9d7848 to 15a2e81 Compare April 11, 2017 18:36
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.

1 participant