Skip to content

Commit

Permalink
Add deletion support for issues and MR
Browse files Browse the repository at this point in the history
This is supported in gitlabhq master branch for admin users (soft
deletion).
  • Loading branch information
Gauvain Pocentek committed Mar 22, 2016
1 parent 349f66e commit 9a9a4c4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gitlab/objects.py
Expand Up @@ -944,7 +944,6 @@ class ProjectIssue(GitlabObject):
_url = '/projects/%(project_id)s/issues/'
_constructorTypes = {'author': 'User', 'assignee': 'User',
'milestone': 'ProjectMilestone'}
canDelete = False
requiredUrlAttrs = ['project_id']
requiredCreateAttrs = ['title']
# FIXME: state_event is only valid with update
Expand Down Expand Up @@ -1072,7 +1071,6 @@ class ProjectMergeRequest(GitlabObject):
_url = '/projects/%(project_id)s/merge_request'
_urlPlural = '/projects/%(project_id)s/merge_requests'
_constructorTypes = {'author': 'User', 'assignee': 'User'}
canDelete = False
requiredUrlAttrs = ['project_id']
requiredCreateAttrs = ['source_branch', 'target_branch', 'title']
optionalCreateAttrs = ['assignee_id']
Expand Down

0 comments on commit 9a9a4c4

Please sign in to comment.