Repository navigation
add support for comment on bulk_write - #915
Open
thiagosalvatore wants to merge 1 commit into
Open
thiagosalvatore wants to merge 1 commit into
thiagosalvatore wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #915 +/- ##
========================================
Coverage 96.07% 96.07%
========================================
Files 35 35
Lines 10118 10120 +2
========================================
+ Hits 9721 9723 +2
Misses 397 397 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced May 19, 2026
engFelipeMonteiro
added a commit
to engFelipeMonteiro/mongomock-ng
that referenced
this pull request
May 20, 2026
Add comment parameter to find(), find_one(), count_documents(), estimated_document_count(), distinct(), bulk_write(), insert_one(), delete_one(), and update_one() to match pymongo API. Add hint parameter to find(), find_one(), count_documents(), and distinct(). References: mongomock#921, mongomock#922, mongomock#915, mongomock#831
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've been using mongomock together with mongomock-motor and beanie.
In recent versions of MongoDB support for comment has been added on bulk write operations.
However, if this parameter is sent to the current implementation of bulk_write, it breaks.
This PR basically accepts the parameter and logs a warning letting the user know that it is ignored on mongomock.