From 746faceb5c14ca1fdcd327949066fb02eba2c5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Sun, 8 Nov 2020 22:55:24 +0100 Subject: [PATCH 1/4] Document fact that srv URI can be used with host #1956 --- docs/guide/connecting.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guide/connecting.rst b/docs/guide/connecting.rst index ac2146a6..03d6ed5c 100644 --- a/docs/guide/connecting.rst +++ b/docs/guide/connecting.rst @@ -31,6 +31,8 @@ the :attr:`host` to connect('project1', host='mongodb://localhost/database_name') +.. note:: URI containing SRV records (e.g mongodb+srv://server.example.com/) can be used as well as the :attr:`host` + .. note:: Database, username and password from URI string overrides corresponding parameters in :func:`~mongoengine.connect`: :: From 338c40b5d5a578a1311889f94ea6178ddc23aa5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Wed, 11 Nov 2020 21:14:54 +0100 Subject: [PATCH 2/4] Remove Py3.5 as it is EOL and added 3.9 to CI --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c5b37b6f..05ce782d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,10 +16,10 @@ language: python dist: xenial python: -- 3.5 - 3.6 - 3.7 - 3.8 +- 3.9 - pypy3 env: From 3f5a15d2367259d0b75bf16e291d762717a3834c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Wed, 11 Nov 2020 21:16:40 +0100 Subject: [PATCH 3/4] improve changelog --- docs/changelog.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 088aeba8..f8c59e74 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,11 +6,12 @@ Changelog Development =========== - (Fill this out as you fix issues and develop your features). -- Bug fix in DynamicDocument which isn not parsing known fields in constructor like Document do #2412 +- Bug fix in DynamicDocument which is not parsing known fields in constructor like Document do #2412 - When using pymongo >= 3.7, make use of Collection.count_documents instead of Collection.count and Cursor.count that got deprecated in pymongo >= 3.7. This should have a negative impact on performance of count see Issue #2219 - Fix a bug that made the queryset drop the read_preference after clone(). +- Remove Py3.5 from CI as it reached EOL and add Python 3.9 - Fix the behavior of Doc.objects.limit(0) which should return all documents (similar to mongodb) #2311 - Bug fix in ListField when updating the first item, it was saving the whole list, instead of just replacing the first item (as it's usually done) #2392 From 1d17dc46633588032fd3dae4f04a8f451db2fa35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Thu, 12 Nov 2020 17:44:13 +0100 Subject: [PATCH 4/4] Add black badge to readme to emphasize that repo is using autoformatter black as it is often forgotten in PR and makes CI failing --- README.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.rst b/README.rst index aca8edc0..7b15c4e3 100644 --- a/README.rst +++ b/README.rst @@ -16,6 +16,9 @@ MongoEngine :target: https://landscape.io/github/MongoEngine/mongoengine/master :alt: Code Health +.. image:: https://img.shields.io/badge/code%20style-black-000000.svg + :target: https://github.com/ambv/black + About ===== MongoEngine is a Python Object-Document Mapper for working with MongoDB.