Commit 30dda279 authored by Valery Sizov's avatar Valery Sizov

[CE->EE] Resolve conflicts in lib[ci skip]

parent 14b0ca4c
...@@ -29,15 +29,12 @@ module API ...@@ -29,15 +29,12 @@ module API
render_api_error!(errors, 400) render_api_error!(errors, 400)
end end
<<<<<<< HEAD
def check_sha_param!(params, merge_request) def check_sha_param!(params, merge_request)
if params[:sha] && merge_request.diff_head_sha != params[:sha] if params[:sha] && merge_request.diff_head_sha != params[:sha]
render_api_error!("SHA does not match HEAD of source branch: #{merge_request.diff_head_sha}", 409) render_api_error!("SHA does not match HEAD of source branch: #{merge_request.diff_head_sha}", 409)
end end
end end
=======
>>>>>>> d964816b9fe56679ffc0b331e701f7b24db5c6a9
def find_merge_requests(args = {}) def find_merge_requests(args = {})
args = params.merge(args) args = params.merge(args)
......
...@@ -52,8 +52,7 @@ module Gitlab ...@@ -52,8 +52,7 @@ module Gitlab
todos: Todo.count, todos: Todo.count,
uploads: Upload.count, uploads: Upload.count,
web_hooks: WebHook.count web_hooks: WebHook.count
<<<<<<< HEAD }.merge(service_desk_counts).merge(services_usage)
}.merge(service_desk_counts)
} }
end end
...@@ -67,9 +66,6 @@ module Gitlab ...@@ -67,9 +66,6 @@ module Gitlab
service_desk_issues: Issue.where(project: projects_with_service_desk, service_desk_issues: Issue.where(project: projects_with_service_desk,
author: User.support_bot, author: User.support_bot,
confidential: true).count confidential: true).count
=======
}.merge(services_usage)
>>>>>>> d964816b9fe56679ffc0b331e701f7b24db5c6a9
} }
end end
...@@ -100,7 +96,6 @@ module Gitlab ...@@ -100,7 +96,6 @@ module Gitlab
usage_data usage_data
end end
<<<<<<< HEAD
def license_edition(plan) def license_edition(plan)
case plan case plan
when 'premium' when 'premium'
...@@ -110,7 +105,8 @@ module Gitlab ...@@ -110,7 +105,8 @@ module Gitlab
else # Older licenses else # Older licenses
'EE' 'EE'
end end
======= end
def services_usage def services_usage
types = { types = {
JiraService: :projects_jira_active, JiraService: :projects_jira_active,
...@@ -121,7 +117,6 @@ module Gitlab ...@@ -121,7 +117,6 @@ module Gitlab
results = Service.unscoped.where(type: types.keys, active: true).group(:type).count results = Service.unscoped.where(type: types.keys, active: true).group(:type).count
results.each_with_object({}) { |(key, value), response| response[types[key.to_sym]] = value } results.each_with_object({}) { |(key, value), response| response[types[key.to_sym]] = value }
>>>>>>> d964816b9fe56679ffc0b331e701f7b24db5c6a9
end end
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