From 60c99108646c5913a2d477e96b78556528d25f35 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sun, 19 Jun 2016 19:39:51 +0200 Subject: issues: add missing optional listing parameters --- gitlab/objects.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gitlab/objects.py') 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 -- cgit v1.2.1