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

feat: Add ability to disable automatic bookkeeping #11

Conversation

brainomite
Copy link
Contributor

Added a new config variable, autoUpdateEnabled, for the config object of
the ChangeDetector constructor. I defaulted it to true, to make the
class behave the same as was prior to the update by default.

When disabled, the onus is now on the consumer of the API to invoke
updateRecords themselves with the records that they want to update the
bookkeeping on. This is useful as it allows for repeatability upon
failures.

I updated the README with details of the new option.

I also bumped the semantic version in package.json from 1.1.0 to 1.2.0
as I believe this is a new feature, but doesn't break existing API
usage.

This commit will resolve #2

Added a new config variable, autoUpdateEnabled, for the config object of
the ChangeDetector constructor. I defaulted it to true, to make the
class behave the same as was prior to the update by default.

When disabled, the onus is now on the consumer of the API to invoke
updateRecords themselves with the records that they want to update the
bookkeeping on. This is useful as it allows for repeatability upon
failures.

I updated the README with details of the new option.

I also bumped the semantic version in package.json from 1.1.0 to 1.2.0
as I believe this is a new feature, but doesn't break existing API
usage.

This commit will resolve crownheightsaid#2
@mjmaurer
Copy link
Contributor

Great change! Sorry I just saw this.

@mjmaurer mjmaurer merged commit 3b91efe into crownheightsaid:master Jun 10, 2020
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.

Bookkeeping info shouldn't be written if update fails
2 participants