summaryrefslogtreecommitdiff
path: root/gitlab/v4
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-01-01 16:15:22 +0100
committerGauvain Pocentek <gauvain@pocentek.net>2018-01-01 16:15:22 +0100
commit65c64ebc08d75092151e828fab0fa73f5fd22e45 (patch)
treef89e45b102899950d4e6d23c67365b0291e86fb4 /gitlab/v4
parentfa520242b878d25e37aacfcb0d838c58d3a4b271 (diff)
downloadgitlab-65c64ebc08d75092151e828fab0fa73f5fd22e45.tar.gz
Add support for user/group/project filter by custom attribute
Closes #367
Diffstat (limited to 'gitlab/v4')
-rw-r--r--gitlab/v4/objects.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 106b102..d7bb3d5 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -253,7 +253,7 @@ class UserManager(CRUDMixin, RESTManager):
_obj_cls = User
_list_filters = ('active', 'blocked', 'username', 'extern_uid', 'provider',
- 'external', 'search')
+ 'external', 'search', 'custom_attributes')
_create_attrs = (
tuple(),
('email', 'username', 'name', 'password', 'reset_password', 'skype',
@@ -656,7 +656,7 @@ class GroupManager(CRUDMixin, RESTManager):
_path = '/groups'
_obj_cls = Group
_list_filters = ('skip_groups', 'all_available', 'search', 'order_by',
- 'sort', 'statistics', 'owned')
+ 'sort', 'statistics', 'owned', 'custom_attributes')
_create_attrs = (
('name', 'path'),
('description', 'visibility', 'parent_id', 'lfs_enabled',
@@ -2639,7 +2639,8 @@ class ProjectManager(CRUDMixin, RESTManager):
)
_list_filters = ('search', 'owned', 'starred', 'archived', 'visibility',
'order_by', 'sort', 'simple', 'membership', 'statistics',
- 'with_issues_enabled', 'with_merge_requests_enabled')
+ 'with_issues_enabled', 'with_merge_requests_enabled',
+ 'custom_attributes')
class Runner(SaveMixin, ObjectDeleteMixin, RESTObject):