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

Revert patches in a already-committed transaction #38

Open
TheJJ opened this issue Apr 21, 2018 · 0 comments
Open

Revert patches in a already-committed transaction #38

TheJJ opened this issue Apr 21, 2018 · 0 comments
Labels
nice new thing ☺ adds new functionality

Comments

@TheJJ
Copy link
Member

TheJJ commented Apr 21, 2018

It should be possible to undo patches in a transaction (e.g. when a research is cancelled).
Two strategies are possible to update the state at that point in time:

  • Generate an inverse patch and apply it to that state
  • Get all patches that led from the previous to this state and remove the canceled ones from that list. Delete this state and go back to the previous one. Create a new state with a transaction that contains all those patches (except the cancelled ones).

This should be an API function, though. We have to decide on a strategy and implement it.

@TheJJ TheJJ added the nice new thing ☺ adds new functionality label Apr 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nice new thing ☺ adds new functionality
Projects
None yet
Development

No branches or pull requests

1 participant