Commit 866b3ff6 authored by Nick Thomas's avatar Nick Thomas

Resolve CE->EE conflicts in application code

parent 3164796c
...@@ -18,12 +18,9 @@ class Project < ActiveRecord::Base ...@@ -18,12 +18,9 @@ class Project < ActiveRecord::Base
include SelectForProjectAuthorization include SelectForProjectAuthorization
include Routable include Routable
include Storage::LegacyProject include Storage::LegacyProject
<<<<<<< HEAD
# EE specific modules # EE specific modules
prepend EE::Project prepend EE::Project
=======
>>>>>>> ce/master
extend Gitlab::ConfigHelper extend Gitlab::ConfigHelper
......
class ProjectWiki class ProjectWiki
include Gitlab::ShellAdapter include Gitlab::ShellAdapter
<<<<<<< HEAD include Storage::LegacyProjectWiki
# EE only modules
include Elastic::WikiRepositoriesSearch include Elastic::WikiRepositoriesSearch
include Gitlab::CurrentSettings include Gitlab::CurrentSettings
=======
>>>>>>> ce/master
include Storage::LegacyProjectWiki
MARKUPS = { MARKUPS = {
'Markdown' => :markdown, 'Markdown' => :markdown,
......
...@@ -3,11 +3,8 @@ module Ci ...@@ -3,11 +3,8 @@ module Ci
def execute def execute
if trigger_from_token if trigger_from_token
create_pipeline_from_trigger(trigger_from_token) create_pipeline_from_trigger(trigger_from_token)
<<<<<<< HEAD
elsif job_from_token elsif job_from_token
create_pipeline_from_job(job_from_token) create_pipeline_from_job(job_from_token)
=======
>>>>>>> ce/master
end end
end end
...@@ -30,7 +27,6 @@ module Ci ...@@ -30,7 +27,6 @@ module Ci
end end
end end
<<<<<<< HEAD
def create_pipeline_from_job(job) def create_pipeline_from_job(job)
# this check is to not leak the presence of the project if user cannot read it # this check is to not leak the presence of the project if user cannot read it
return unless can?(job.user, :read_project, project) return unless can?(job.user, :read_project, project)
...@@ -55,23 +51,18 @@ module Ci ...@@ -55,23 +51,18 @@ module Ci
end end
end end
=======
>>>>>>> ce/master
def trigger_from_token def trigger_from_token
return @trigger if defined?(@trigger) return @trigger if defined?(@trigger)
@trigger = Ci::Trigger.find_by_token(params[:token].to_s) @trigger = Ci::Trigger.find_by_token(params[:token].to_s)
end end
<<<<<<< HEAD
def job_from_token def job_from_token
return @job if defined?(@job) return @job if defined?(@job)
@job = Ci::Build.find_by_token(params[:token].to_s) @job = Ci::Build.find_by_token(params[:token].to_s)
end end
=======
>>>>>>> ce/master
def create_pipeline_variables!(pipeline) def create_pipeline_variables!(pipeline)
return unless params[:variables] return unless params[:variables]
......
...@@ -131,13 +131,8 @@ class GitPushService < BaseService ...@@ -131,13 +131,8 @@ class GitPushService < BaseService
mirror_update = @project.mirror? && @project.repository.up_to_date_with_upstream?(branch_name) mirror_update = @project.mirror? && @project.repository.up_to_date_with_upstream?(branch_name)
EventCreateService.new.push(@project, current_user, build_push_data) EventCreateService.new.push(@project, current_user, build_push_data)
<<<<<<< HEAD
Ci::CreatePipelineService.new(@project, current_user, build_push_data).execute(:push, mirror_update: mirror_update) Ci::CreatePipelineService.new(@project, current_user, build_push_data).execute(:push, mirror_update: mirror_update)
=======
Ci::CreatePipelineService.new(@project, current_user, build_push_data).execute(:push)
>>>>>>> ce/master
SystemHookPushWorker.perform_async(build_push_data.dup, :push_hooks) SystemHookPushWorker.perform_async(build_push_data.dup, :push_hooks)
@project.execute_hooks(build_push_data.dup, :push_hooks) @project.execute_hooks(build_push_data.dup, :push_hooks)
@project.execute_services(build_push_data.dup, :push_hooks) @project.execute_services(build_push_data.dup, :push_hooks)
......
module MergeRequests module MergeRequests
class BaseService < ::IssuableBaseService class BaseService < ::IssuableBaseService
<<<<<<< HEAD
prepend EE::MergeRequests::BaseService prepend EE::MergeRequests::BaseService
=======
>>>>>>> ce/master
def create_note(merge_request, state = merge_request.state) def create_note(merge_request, state = merge_request.state)
SystemNoteService.change_status(merge_request, merge_request.target_project, current_user, state, nil) SystemNoteService.change_status(merge_request, merge_request.target_project, current_user, state, nil)
end end
......
...@@ -11,11 +11,7 @@ ...@@ -11,11 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
<<<<<<< HEAD
ActiveRecord::Schema.define(version: 20170726111039) do
=======
ActiveRecord::Schema.define(version: 20170728101014) do ActiveRecord::Schema.define(version: 20170728101014) do
>>>>>>> ce/master
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
......
...@@ -28,15 +28,11 @@ module Banzai ...@@ -28,15 +28,11 @@ module Banzai
end end
def build_url(uri) def build_url(uri)
<<<<<<< HEAD
if Gitlab::Geo.secondary? if Gitlab::Geo.secondary?
File.join(Gitlab::Geo.primary_node.url, project.full_path, uri) File.join(Gitlab::Geo.primary_node.url, project.full_path, uri)
else else
File.join(Gitlab.config.gitlab.url, project.full_path, uri) File.join(Gitlab.config.gitlab.url, project.full_path, uri)
end end
=======
File.join(Gitlab.config.gitlab.url, project.full_path, uri)
>>>>>>> ce/master
end end
def project def project
......
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