Repository navigation
Added a full option to support persisting all changes to the proxied … - #7
Merged
Merged
Conversation
ddolcimascolo
force-pushed
the
full-mode
branch
from
April 17, 2018 14:36
7dc494f to
fd109a2
Compare
…Model. By default sequelize-temporal persist only changes, and saves the previous state in the history table. I wanted a way to persist every state that landed in the main table at some point. This includes intial creation and latest state. This allows to only query the hostory table to get the full history of an entity, and also integrates nicely with sequelize paranoid mode.
ddolcimascolo
force-pushed
the
full-mode
branch
from
April 17, 2018 14:41
fd109a2 to
5c71689
Compare
Collaborator
Author
|
@wilzbach Did you get a chance to review this ? |
wilzbach
approved these changes
Jul 4, 2018
wilzbach
left a comment
Member
There was a problem hiding this comment.
Sorry for being gone for a while. I don't work at the company anymore nor do I use JavaScript, but your changes look pretty good and reasonable. I updated the tested Travis compiler, s.t. the build failure is gone & will update the README + push out a new version once this is merged.
Collaborator
Author
|
Exellent, thx @wilzbach |
Member
|
Updated: https://www.npmjs.com/package/sequelize-temporal (also bumped sequelize to v4) while I was at it. |
Merged
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…Model.
By default sequelize-temporal persist only changes, and saves the previous state in the history table.
I wanted a way to persist every state that landed in the main table at some point. This includes intial creation and latest state.
This allows to only query the hostory table to get the full history of an entity, and also integrates nicely with sequelize paranoid mode.