BigW Consortium Gitlab

Commit 7abfe14e by Jacob Schatz

reverting merge_request_controller

parent fa8b228f
...@@ -48,15 +48,9 @@ class Projects::MergeRequestsController < Projects::ApplicationController ...@@ -48,15 +48,9 @@ class Projects::MergeRequestsController < Projects::ApplicationController
@note_counts = Note.where(commit_id: @merge_request.commits.map(&:id)). @note_counts = Note.where(commit_id: @merge_request.commits.map(&:id)).
group(:commit_id).count group(:commit_id).count
json_merge_request = @merge_requests.as_json
respond_to do |format| respond_to do |format|
format.html format.html
format.json do format.json { render json: @merge_request }
render json: {
hi: "yes"
}
end
format.diff { render text: @merge_request.to_diff(current_user) } format.diff { render text: @merge_request.to_diff(current_user) }
format.patch { render text: @merge_request.to_patch(current_user) } format.patch { render text: @merge_request.to_patch(current_user) }
end end
...@@ -149,8 +143,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController ...@@ -149,8 +143,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
format.json do format.json do
render json: { render json: {
saved: @merge_request.valid?, saved: @merge_request.valid?,
assignee_avatar_url: @merge_request.assignee.try(:avatar_url), assignee_avatar_url: @merge_request.assignee.try(:avatar_url)
closed_event: @merge_request.closed_event
} }
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment