diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-06-19 19:39:51 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-06-19 19:39:51 +0200 |
commit | 60c99108646c5913a2d477e96b78556528d25f35 (patch) | |
tree | d001aad067e26fb5d019d994ede71b587af41310 /gitlab | |
parent | 2e0ac3fa4a66a63921b2aeee81dcc942a0849985 (diff) | |
download | gitlab-60c99108646c5913a2d477e96b78556528d25f35.tar.gz |
issues: add missing optional listing parameters
Diffstat (limited to 'gitlab')
-rw-r--r-- | gitlab/objects.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py index 83569a0..fe69fff 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -760,7 +760,7 @@ class Issue(GitlabObject): canUpdate = False canCreate = False shortPrintAttr = 'title' - optionalListAttrs = ['state', 'labels'] + optionalListAttrs = ['state', 'labels', 'order_by', 'sort'] class IssueManager(BaseManager): @@ -1034,7 +1034,8 @@ class ProjectIssue(GitlabObject): _url = '/projects/%(project_id)s/issues/' _constructorTypes = {'author': 'User', 'assignee': 'User', 'milestone': 'ProjectMilestone'} - optionalListAttrs = ['state', 'labels', 'milestone', 'iid'] + optionalListAttrs = ['state', 'labels', 'milestone', 'iid', 'order_by', + 'sort'] requiredUrlAttrs = ['project_id'] requiredCreateAttrs = ['title'] # FIXME: state_event is only valid with update |