From a02914c7fc5f0aaa7cdd91d25a4713a1cd5e8b38 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 15 Oct 2018 06:35:42 -0400 Subject: [PATCH 1/3] Run tests on Python 3.6 and MongoDB 3.6. Ref #767. --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0d71d649..420ba4cf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,8 +16,10 @@ jobs: env: MONGODB=3.0.14 - python: 3.4 env: MONGODB=2.6.12 - - python: &latest_py3 3.5 + - python: 3.5 env: MONGODB=2.4.14 + - python: &latest_py3 3.6 + env: MONGODB=3.6.8 - stage: deploy if: tag IS present python: *latest_py3 From 7dca454f73ddeb118389892e3624246919412580 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 15 Oct 2018 06:40:58 -0400 Subject: [PATCH 2/3] Declare support for MongoDB 3.6. Fixes #767. --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 41b3b01b..6f1564f1 100644 --- a/README.rst +++ b/README.rst @@ -26,7 +26,7 @@ Getting Started --------------- mongo-connector supports Python 2.6, 2.7, and 3.3+ and MongoDB versions -2.4, 2.6, 3.0, 3.2, and 3.4. +2.4, 2.6, 3.0, 3.2, 3.4, and 3.6. Installation ~~~~~~~~~~~~ From 40ae2b7d939703019a36d8884262dc9759d31efb Mon Sep 17 00:00:00 2001 From: DEWITTE Pierre-Alban Date: Tue, 4 Dec 2018 16:39:16 +0100 Subject: [PATCH 3/3] FIX #836 Remove $v entry in update documents for mongo doc manager --- mongo_connector/doc_managers/mongo_doc_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mongo_connector/doc_managers/mongo_doc_manager.py b/mongo_connector/doc_managers/mongo_doc_manager.py index 6f9d7ea5..07687c1b 100644 --- a/mongo_connector/doc_managers/mongo_doc_manager.py +++ b/mongo_connector/doc_managers/mongo_doc_manager.py @@ -172,6 +172,8 @@ def update(self, document_id, update_spec, namespace, timestamp): ) no_obj_error = "No matching object found" + if "$v" in update_spec: + update_spec.pop("$v") updated = self.mongo[db].command( SON( [