Skip to content

Commit 9a9a4c4

Browse files
author
Gauvain Pocentek
committed
Add deletion support for issues and MR
This is supported in gitlabhq master branch for admin users (soft deletion).
1 parent 349f66e commit 9a9a4c4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

gitlab/objects.py

-2
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,6 @@ class ProjectIssue(GitlabObject):
944944
_url = '/projects/%(project_id)s/issues/'
945945
_constructorTypes = {'author': 'User', 'assignee': 'User',
946946
'milestone': 'ProjectMilestone'}
947-
canDelete = False
948947
requiredUrlAttrs = ['project_id']
949948
requiredCreateAttrs = ['title']
950949
# FIXME: state_event is only valid with update
@@ -1072,7 +1071,6 @@ class ProjectMergeRequest(GitlabObject):
10721071
_url = '/projects/%(project_id)s/merge_request'
10731072
_urlPlural = '/projects/%(project_id)s/merge_requests'
10741073
_constructorTypes = {'author': 'User', 'assignee': 'User'}
1075-
canDelete = False
10761074
requiredUrlAttrs = ['project_id']
10771075
requiredCreateAttrs = ['source_branch', 'target_branch', 'title']
10781076
optionalCreateAttrs = ['assignee_id']

0 commit comments

Comments
 (0)