Skip to content

update _undo to reflect current ctx#393

Merged
nicolodavis merged 4 commits into
boardgameio:masterfrom
mgrau:undo_fix
May 9, 2019
Merged

update _undo to reflect current ctx#393
nicolodavis merged 4 commits into
boardgameio:masterfrom
mgrau:undo_fix

Conversation

@mgrau
Copy link
Copy Markdown
Contributor

@mgrau mgrau commented May 7, 2019

add tests for undo and redo of actions that change phase.

Checklist

  • [x ] Use a separate branch in your local repo (not master).
  • [x ] Test coverage is 100% (or you have a story for why it's ok).

mgrau and others added 2 commits May 7, 2019 00:14
add tests for undo and redo of actions that change phase.
Copy link
Copy Markdown
Member

@nicolodavis nicolodavis left a comment

Choose a reason for hiding this comment

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

Thanks for looking into this!

Comment thread src/core/reducer.test.js Outdated
@nicolodavis nicolodavis merged commit eda9728 into boardgameio:master May 9, 2019
nicolodavis added a commit that referenced this pull request Aug 18, 2019
This code was originally added to cover the situation where the
phase could change within a turn in an event like this:

move: (G, ctx) => {
  ctx.events.endPhase();
}

We can no longer end the phase without also ending the turn, so
this code is not necessary.

Link to original issue:
#389

Link to previous fix that is undone in this commit:
#393
nicolodavis added a commit that referenced this pull request Sep 10, 2019
This code was originally added to cover the situation where the
phase could change within a turn in an event like this:

move: (G, ctx) => {
  ctx.events.endPhase();
}

We can no longer end the phase without also ending the turn, so
this code is not necessary.

Link to original issue:
#389

Link to previous fix that is undone in this commit:
#393
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