summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-06-19 19:39:51 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2016-06-19 19:39:51 +0200
commit60c99108646c5913a2d477e96b78556528d25f35 (patch)
treed001aad067e26fb5d019d994ede71b587af41310 /gitlab
parent2e0ac3fa4a66a63921b2aeee81dcc942a0849985 (diff)
downloadgitlab-60c99108646c5913a2d477e96b78556528d25f35.tar.gz
issues: add missing optional listing parameters
Diffstat (limited to 'gitlab')
-rw-r--r--gitlab/objects.py5
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