Skip to content

Bet creators can resolve a bet#72

Open
ghost wants to merge 10 commits intomasterfrom
bet_creators_can_resolve_a_bet_redone
Open

Bet creators can resolve a bet#72
ghost wants to merge 10 commits intomasterfrom
bet_creators_can_resolve_a_bet_redone

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