You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/changelog.rst
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,9 @@ Development
12
12
- make sure to read https://www.mongodb.com/docs/manual/core/transactions-in-applications/#callback-api-vs-core-api
13
13
- run_in_transaction context manager relies on Pymongo coreAPI, it will retry automatically in case of `UnknownTransactionCommitResult` but not `TransientTransactionError` exceptions
14
14
- Using .count() in a transaction will always use Collection.count_document (as estimated_document_count is not supported in transactions)
15
+
- Further to the deprecation warning, remove ability to use an unpacked list to `Queryset.aggregate(*pipeline)`, a plain list must be provided instead `Queryset.aggregate(pipeline)`, as it's closer to pymongo interface
16
+
- Further to the deprecation warning, remove `full_response` from `QuerySet.modify` as it wasn't supported with Pymongo 3+
17
+
- Fixed stacklevel of many warnings (to point places emitting the warning more accurately)
msg="Calling .aggregate() with un unpacked list (*pipeline) is deprecated, it will soon change and will expect a list (similar to pymongo.Collection.aggregate interface), see documentation"
1358
-
warnings.warn(msg, DeprecationWarning)
1359
-
1360
-
user_pipeline+=suppl_pipeline
1336
+
ifnotisinstance(pipeline, (tuple, list)):
1337
+
raiseTypeError(
1338
+
f"Starting from 1.0 release pipeline must be a list/tuple, received: {type(pipeline)}"
0 commit comments