-
Notifications
You must be signed in to change notification settings - Fork 130
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
Bug/187 track changes from embedded documents (NOT deeply nested) #232
Bug/187 track changes from embedded documents (NOT deeply nested) #232
Conversation
89b9ce9
to
6a93b6e
Compare
For rubocop, |
a16e94f
to
4d96b45
Compare
4d96b45
to
328ba98
Compare
@dblock build is green, waiting for your CR. PS : not really sure why the coverage decreased... maybe the paranoia field in the embedded document ? Should I test this too ? |
3 similar comments
@@ -1,5 +1,6 @@ | |||
### 0.8.2 (Next) | |||
|
|||
* [#232](https://github.com/mongoid/mongoid-history/pull/232): Bug/187 track changes from embedded documents (not deeply nested) - [@Startouf](https://github.com/Startouf). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By convention we just do [#232], [#187]: ...
, but I won't hold the CR for this.
I'm merging it. 👏 |
I finished a set of changes for tracking embeds_one changes from the child
It only works on the first level of a nested relationship (won't work for deeply nested relationships, I have added a "pending" test regarding this
I'm using the trick of "nested keys with dots" so that I can more easily make the difference between a nested document and just a field of type hash, so as to improve the tracking record
Fixes partially #187