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

Enable history tracking on create and destroy by default #211

Merged
merged 5 commits into from
Dec 8, 2017

Conversation

jagdeepsingh
Copy link
Contributor

@jagdeepsingh jagdeepsingh commented Dec 5, 2017

Bump next version to 0.8.0

This is a replacement for #207.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 99.791% when pulling 7da51ae on JagdeepSingh:johnnyshields-patch-1 into d6102a1 on mongoid:master.

1 similar comment
@coveralls
Copy link

coveralls commented Dec 5, 2017

Coverage Status

Coverage increased (+0.03%) to 99.791% when pulling 7da51ae on JagdeepSingh:johnnyshields-patch-1 into d6102a1 on mongoid:master.

@jagdeepsingh jagdeepsingh force-pushed the johnnyshields-patch-1 branch from 5d8070b to 5999f6d Compare December 5, 2017 11:10
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.0%) to 98.803% when pulling 5999f6d on JagdeepSingh:johnnyshields-patch-1 into d6102a1 on mongoid:master.

@coveralls
Copy link

coveralls commented Dec 5, 2017

Coverage Status

Coverage increased (+0.03%) to 99.791% when pulling 5999f6d on JagdeepSingh:johnnyshields-patch-1 into d6102a1 on mongoid:master.

Copy link
Collaborator

@dblock dblock left a comment

Choose a reason for hiding this comment

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

Minor comments, otherwise looks great. Amend?

CHANGELOG.md Outdated

* [#208](https://github.com/mongoid/mongoid-history/pull/208): Fix: history tracks fields declared after `track_history` - [@mikwat](https://github.com/mikwat).
* [#211](https://github.com/mongoid/mongoid-history/pull/211): BREAKING CHANGE - Enable tracking create/destroy by default - [@jagdeepsingh](https://github.com/jagdeepsingh).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Lets not be dramatic :) It's not a breaking change, it's just a different behavior. I would just remove the BREAKING CHANGE part and call it a day.

@@ -613,6 +615,7 @@ def self.name
let(:m) { MyModel.create!(foo: 'bar') }

it 'should create history' do
m # Created
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead use let!, it will create m.

@johnnyshields
Copy link
Member

@jagdeepsingh please handle

@jagdeepsingh jagdeepsingh force-pushed the johnnyshields-patch-1 branch from 5999f6d to ac108d4 Compare December 8, 2017 06:14
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 99.797% when pulling ac108d4 on JagdeepSingh:johnnyshields-patch-1 into 487d4fe on mongoid:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 99.797% when pulling ac108d4 on JagdeepSingh:johnnyshields-patch-1 into 487d4fe on mongoid:master.

@coveralls
Copy link

coveralls commented Dec 8, 2017

Coverage Status

Coverage increased (+0.03%) to 99.797% when pulling ac108d4 on JagdeepSingh:johnnyshields-patch-1 into 487d4fe on mongoid:master.

@jagdeepsingh
Copy link
Contributor Author

@dblock done.

@coveralls
Copy link

coveralls commented Dec 8, 2017

Coverage Status

Coverage increased (+0.03%) to 99.797% when pulling 3c174af on JagdeepSingh:johnnyshields-patch-1 into 487d4fe on mongoid:master.

@johnnyshields
Copy link
Member

@dblock please merge

@dblock dblock merged commit f9880c7 into mongoid:master Dec 8, 2017
@dblock
Copy link
Collaborator

dblock commented Dec 8, 2017

👍

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.

4 participants