Skip to content

Added a full option to support persisting all changes to the proxied … - #7

Merged
wilzbach merged 3 commits into
bonaval:masterfrom
ddolcimascolo:full-mode
Jul 4, 2018
Merged

wilzbach merged 3 commits into
bonaval:masterfrom
ddolcimascolo:full-mode

Conversation

@ddolcimascolo

Copy link
Copy Markdown
Collaborator

…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.

…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

Copy link
Copy Markdown
Collaborator Author

@wilzbach Did you get a chance to review this ?

@wilzbach wilzbach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

@wilzbach
wilzbach merged commit e87df34 into bonaval:master Jul 4, 2018
@ddolcimascolo

Copy link
Copy Markdown
Collaborator Author

Exellent, thx @wilzbach

@wilzbach

wilzbach commented Jul 4, 2018

Copy link
Copy Markdown
Member

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