Commit a17ceab3 authored by Yorick Peterse's avatar Yorick Peterse

Resolve conflicts in the Project model

parent 1bb462d8
...@@ -66,15 +66,10 @@ class Project < ActiveRecord::Base ...@@ -66,15 +66,10 @@ class Project < ActiveRecord::Base
# update visibility_level of forks # update visibility_level of forks
after_update :update_forks_visibility_level after_update :update_forks_visibility_level
<<<<<<< HEAD
after_update :remove_mirror_repository_reference, after_update :remove_mirror_repository_reference,
if: ->(project) { project.mirror? && project.import_url_updated? } if: ->(project) { project.mirror? && project.import_url_updated? }
after_validation :check_pending_delete after_validation :check_pending_delete
=======
>>>>>>> ce-com/master
after_validation :check_pending_delete
acts_as_taggable acts_as_taggable
...@@ -571,15 +566,11 @@ class Project < ActiveRecord::Base ...@@ -571,15 +566,11 @@ class Project < ActiveRecord::Base
ProjectCacheWorker.perform_async(self.id) ProjectCacheWorker.perform_async(self.id)
end end
<<<<<<< HEAD
self.import_data&.destroy unless mirror?
=======
remove_import_data remove_import_data
end end
def remove_import_data def remove_import_data
import_data&.destroy import_data&.destroy unless mirror?
>>>>>>> ce-com/master
end end
def import_url=(value) def import_url=(value)
...@@ -1255,13 +1246,6 @@ class Project < ActiveRecord::Base ...@@ -1255,13 +1246,6 @@ class Project < ActiveRecord::Base
@wiki ||= ProjectWiki.new(self, self.owner) @wiki ||= ProjectWiki.new(self, self.owner)
end end
<<<<<<< HEAD
def reference_issue_tracker?
default_issues_tracker? || jira_tracker_active?
end
=======
>>>>>>> ce-com/master
def jira_tracker_active? def jira_tracker_active?
jira_tracker? && jira_service.active jira_tracker? && jira_service.active
end end
...@@ -1401,7 +1385,6 @@ class Project < ActiveRecord::Base ...@@ -1401,7 +1385,6 @@ class Project < ActiveRecord::Base
end end
end end
<<<<<<< HEAD
def merge_method def merge_method
if self.merge_requests_ff_only_enabled if self.merge_requests_ff_only_enabled
:ff :ff
...@@ -1460,8 +1443,6 @@ class Project < ActiveRecord::Base ...@@ -1460,8 +1443,6 @@ class Project < ActiveRecord::Base
remote_mirrors.each(&:mark_for_delete_if_blank_url) remote_mirrors.each(&:mark_for_delete_if_blank_url)
end end
=======
>>>>>>> ce-com/master
def running_or_pending_build_count(force: false) def running_or_pending_build_count(force: false)
Rails.cache.fetch(['projects', id, 'running_or_pending_build_count'], force: force) do Rails.cache.fetch(['projects', id, 'running_or_pending_build_count'], force: force) do
builds.running_or_pending.count(:all) builds.running_or_pending.count(:all)
......
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