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

Bug/187 track changes from embedded documents (NOT deeply nested) #232

Merged

Conversation

Startouf
Copy link
Contributor

@Startouf Startouf commented Jun 8, 2019

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

@Startouf Startouf force-pushed the bug/187-track-changes-from-embedded-documents branch from 89b9ce9 to 6a93b6e Compare June 8, 2019 12:41
@dblock
Copy link
Collaborator

dblock commented Jun 8, 2019

For rubocop, rubocop -a ; rubocop --auto-gen-config. Will do a proper CR when 🍏, looks promising!

@Startouf Startouf force-pushed the bug/187-track-changes-from-embedded-documents branch from a16e94f to 4d96b45 Compare June 9, 2019 11:51
@Startouf Startouf force-pushed the bug/187-track-changes-from-embedded-documents branch from 4d96b45 to 328ba98 Compare June 9, 2019 11:57
@Startouf
Copy link
Contributor Author

Startouf commented Jun 9, 2019

@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 ?

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 99.373% when pulling 328ba98 on Startouf:bug/187-track-changes-from-embedded-documents into 8ed7ba1 on mongoid:master.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 99.373% when pulling 328ba98 on Startouf:bug/187-track-changes-from-embedded-documents into 8ed7ba1 on mongoid:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 99.373% when pulling 328ba98 on Startouf:bug/187-track-changes-from-embedded-documents into 8ed7ba1 on mongoid:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 99.373% when pulling 328ba98 on Startouf:bug/187-track-changes-from-embedded-documents into 8ed7ba1 on mongoid:master.

@@ -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).
Copy link
Collaborator

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.

@dblock
Copy link
Collaborator

dblock commented Jun 11, 2019

I'm merging it. 👏

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.

3 participants