-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-2850 [v3.13] Deprecate mapReduce command #861
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
Conversation
Can you please add a version changed entry for both methods as well? |
pymongo/collection.py
Outdated
@@ -3091,6 +3093,10 @@ def map_reduce(self, map, reduce, out, full_response=False, session=None, **kwar | |||
this collection is automatically applied to this operation (if the | |||
output is not inline) when using MongoDB >= 3.4. | |||
|
|||
.. versionchanged:: 3.13 | |||
Deprecated :meth:`map_reduce`. Support for this function is deprecated in |
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.
We should also say that this is removed in PyMongo 4.0:
https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html#collection-map-reduce-and-collection-inline-map-reduce-are-removed
You should say here what users should do instead. An abbreviated version of what the PyMongo 4 upgrade guide says.
pymongo/collection.py
Outdated
@@ -3153,11 +3163,16 @@ def inline_map_reduce(self, map, reduce, full_response=False, session=None, **kw | |||
|
|||
>>> db.test.inline_map_reduce(map, reduce, limit=2) | |||
|
|||
.. versionchanged:: 3.13 | |||
Deprecated :meth:`inline_map_reduce`. Support for this function is deprecated in |
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.
Same comment here.
5aaeea7
to
08743fd
Compare
Managed to accidentally merge with master rather than the v3.13 branch so there are a tonnn of messed up changes. I think I'm just gonna create this from scratch in a new PR given how small it is. |
08743fd
to
a8e20ff
Compare
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.
LGTM, thanks!
Deprecate mapReduce helpers