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

fix(timestamps): set timestamps on child schema when child schema has timestamps: true but parent schema does not #12151

Merged
merged 1 commit into from Jul 27, 2022

Conversation

vkarpov15
Copy link
Collaborator

Fix #12119

Summary

#12119 is due to the fact that applyTimestampsToChildren() stops when it finds a schema that doesn't have timestamps: true. With this PR, applyTimestampsToChildren() will keep going to find any child schemas that have timestamps: true.

Examples

… timestamps: true but parent schema does not

Fix #12119
Copy link
Collaborator

@AbdelrahmanHafez AbdelrahmanHafez left a comment

Choose a reason for hiding this comment

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

LGTM, thanks 👍

@vkarpov15 vkarpov15 merged commit 18d683b into master Jul 27, 2022
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-12119 branch July 27, 2022 16:54
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.

Different timestamp behaviour for different operators on nested subdocuments
2 participants