BigW Consortium Gitlab

Commit 3ea0ac9a by Rémy Coutable

Merge branch 'backport-exceptions-argument' into 'master'

Allow passing exceptions when creating project services See merge request !12745
parents b0cb64a1 8947232b
......@@ -801,10 +801,12 @@ class Project < ActiveRecord::Base
update_column(:has_external_wiki, services.external_wikis.any?)
end
def find_or_initialize_services
def find_or_initialize_services(exceptions: [])
services_templates = Service.where(template: true)
Service.available_services_names.map do |service_name|
available_services_names = Service.available_services_names - exceptions
available_services_names.map do |service_name|
service = find_service(services, service_name)
if service
......
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