From 27375f6913547cc6e00084e5e77b0ad912b89910 Mon Sep 17 00:00:00 2001 From: Max Wittig Date: Wed, 5 Feb 2020 11:04:13 +0100 Subject: [PATCH 1/2] chore(user): update user attributes This also workarounds an GitLab issue, where private_profile, would reset to false if not supplied --- gitlab/v4/objects.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 1750a3641..b0e686df1 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -414,6 +414,7 @@ class UserManager(CRUDMixin, RESTManager): "search", "custom_attributes", "status", + "two_factor", ) _create_attrs = ( tuple(), @@ -438,6 +439,8 @@ class UserManager(CRUDMixin, RESTManager): "organization", "location", "avatar", + "public_email", + "private_profile", ), ) _update_attrs = ( @@ -459,6 +462,8 @@ class UserManager(CRUDMixin, RESTManager): "organization", "location", "avatar", + "public_email", + "private_profile", ), ) _types = {"confirm": types.LowercaseStringAttribute, "avatar": types.ImageAttribute} From 8287a0d993a63501fc859702fc8079a462daa1bb Mon Sep 17 00:00:00 2001 From: Max Wittig Date: Wed, 5 Feb 2020 11:09:46 +0100 Subject: [PATCH 2/2] chore: bump version to 2.0.1 --- gitlab/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/__init__.py b/gitlab/__init__.py index c9716c282..9a3a8b1d2 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -30,7 +30,7 @@ from gitlab import utils # noqa __title__ = "python-gitlab" -__version__ = "2.0.0" +__version__ = "2.0.1" __author__ = "Gauvain Pocentek" __email__ = "gauvainpocentek@gmail.com" __license__ = "LGPL3"