summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2018-01-25 11:40:08 +0000
committerMarin Jankovski <marin@gitlab.com>2018-01-25 11:40:08 +0000
commitb2c2d10c42b7a153477e9e806d3c0d4fd3223a9f (patch)
treede3155c4de1d0f7167908240484e9471e014de85
parenteab9ffeff66c6ab6f7cad3c507640e75f8c8762f (diff)
parent1db2f22b15c08c96f02796bb64715d184793ffa3 (diff)
downloadgitlab-ce-b2c2d10c42b7a153477e9e806d3c0d4fd3223a9f.tar.gz
Merge branch 'revert-9f5390d8' into 'master'
Revert "Merge branch 'osw-updates-merge-status-on-api-actions' into 'master'" See merge request gitlab-org/gitlab-ce!16707
-rw-r--r--changelogs/unreleased/osw-updates-merge-status-on-api-actions.yml5
-rw-r--r--lib/api/entities.rb11
2 files changed, 1 insertions, 15 deletions
diff --git a/changelogs/unreleased/osw-updates-merge-status-on-api-actions.yml b/changelogs/unreleased/osw-updates-merge-status-on-api-actions.yml
deleted file mode 100644
index 3854985e576..00000000000
--- a/changelogs/unreleased/osw-updates-merge-status-on-api-actions.yml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-title: Return more consistent values for merge_status on MR APIs
-merge_request:
-author:
-type: fixed
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 5b470bd3479..7b9a80a234b 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -507,16 +507,7 @@ module API
expose :work_in_progress?, as: :work_in_progress
expose :milestone, using: Entities::Milestone
expose :merge_when_pipeline_succeeds
-
- # Ideally we should deprecate `MergeRequest#merge_status` exposure and
- # use `MergeRequest#mergeable?` instead (boolean).
- # See https://gitlab.com/gitlab-org/gitlab-ce/issues/42344 for more
- # information.
- expose :merge_status do |merge_request|
- # In order to avoid having a breaking change for users, we keep returning the
- # expected values from MergeRequest#merge_status state machine.
- merge_request.mergeable? ? 'can_be_merged' : 'cannot_be_merged'
- end
+ expose :merge_status
expose :diff_head_sha, as: :sha
expose :merge_commit_sha
expose :user_notes_count