feat: make journal entries generic#2154
Conversation
CodSpeed Performance ReportMerging #2154 will not alter performanceComparing Summary
|
|
@rakita an idea for a future change: it could be easier to maintain if the revert and the change itself are symmetric, meaning that both the original state change and it's revert are handled in the entry, then it could be easier to unitest (checkpoint + do the change and revert, then check state is the same) |
Yeah I assume something like this is going to be implemented in future, that both do the action and know how to revert it. But this is a good step forward |
This pull requests moves revert functionality into the journal entry trait, and makes it possible to create custom journal entries which are revertible
closes issue:
#2146