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

materialize-mongodb: remove _id property from loaded docs #1156

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

psFried
Copy link
Member

@psFried psFried commented Jan 3, 2024

Removes the _id property before returning loaded documents. This is to prevent that property from causing schema validation errors for collections that use a top level reduce: { strategy: merge }.


This change is Reviewable

@psFried psFried requested a review from mdibaiee January 3, 2024 17:39
Removes the `_id` property before returning loaded documents. This is to
prevent that property from causing schema validation errors for collections
that use a top level `reduce: { strategy: merge }`.
@psFried psFried force-pushed the phil/mongo-redact-id branch from f07b4e4 to fcfffd9 Compare January 3, 2024 18:38
@psFried
Copy link
Member Author

psFried commented Jan 3, 2024

I had previously created this materialization to reproduce this issue. I then updated that materialization to use the image from this PR build, and it started working correctly again.

Copy link
Member

@jgraettinger jgraettinger left a comment

Choose a reason for hiding this comment

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

LGTM

@psFried psFried merged commit 82a9a95 into main Jan 3, 2024
42 of 44 checks passed
@psFried psFried deleted the phil/mongo-redact-id branch January 3, 2024 20:02
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.

2 participants