Commit 8fa498c0 authored by GitLab Bot's avatar GitLab Bot

Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-04-30

# Conflicts:
#	app/models/members/group_member.rb
#	app/models/members/project_member.rb
#	app/services/notification_service.rb
#	config/initializers/omniauth.rb

[ci skip]
parents 80695a59 649f791e
......@@ -42,20 +42,32 @@ class GroupMember < Member
private
def send_invite
<<<<<<< HEAD
run_after_commit_or_now { notification_service.invite_group_member(self, @raw_invite_token) } unless @skip_notification
=======
run_after_commit_or_now { notification_service.invite_group_member(self, @raw_invite_token) }
>>>>>>> upstream/master
super
end
def post_create_hook
<<<<<<< HEAD
run_after_commit_or_now { notification_service.new_group_member(self) } unless @skip_notification
=======
run_after_commit_or_now { notification_service.new_group_member(self) }
>>>>>>> upstream/master
super
end
def post_update_hook
if access_level_changed?
<<<<<<< HEAD
run_after_commit { notification_service.update_group_member(self) } unless @skip_notification
=======
run_after_commit { notification_service.update_group_member(self) }
>>>>>>> upstream/master
end
super
......
......@@ -101,7 +101,11 @@ class ProjectMember < Member
end
def send_invite
<<<<<<< HEAD
run_after_commit_or_now { notification_service.invite_project_member(self, @raw_invite_token) } unless @skip_notification
=======
run_after_commit_or_now { notification_service.invite_project_member(self, @raw_invite_token) }
>>>>>>> upstream/master
super
end
......@@ -109,7 +113,11 @@ class ProjectMember < Member
def post_create_hook
unless owner?
event_service.join_project(self.project, self.user)
<<<<<<< HEAD
run_after_commit_or_now { notification_service.new_project_member(self) } unless @skip_notification
=======
run_after_commit_or_now { notification_service.new_project_member(self) }
>>>>>>> upstream/master
end
super
......@@ -117,7 +125,11 @@ class ProjectMember < Member
def post_update_hook
if access_level_changed?
<<<<<<< HEAD
run_after_commit { notification_service.update_project_member(self) } unless @skip_notification
=======
run_after_commit { notification_service.update_project_member(self) }
>>>>>>> upstream/master
end
super
......
......@@ -14,8 +14,11 @@
# NotificationService.new.async.new_issue(issue, current_user)
#
class NotificationService
<<<<<<< HEAD
prepend EE::NotificationService
=======
>>>>>>> upstream/master
class Async
attr_reader :parent
delegate :respond_to_missing, to: :parent
......@@ -523,6 +526,7 @@ class NotificationService
end
end
<<<<<<< HEAD
def add_mr_approvers_email(merge_request, approvers, current_user)
approvers.each do |approver|
recipient = approver.user
......@@ -535,6 +539,8 @@ class NotificationService
Notify
end
=======
>>>>>>> upstream/master
private
def recipients_for_pages_domain(domain)
......
......@@ -26,7 +26,10 @@ end
module OmniAuth
module Strategies
autoload :Bitbucket, Rails.root.join('lib', 'omni_auth', 'strategies', 'bitbucket')
<<<<<<< HEAD
autoload :GroupSaml, Rails.root.join('ee', 'lib', 'omni_auth', 'strategies', 'group_saml')
=======
>>>>>>> upstream/master
autoload :Jwt, Rails.root.join('lib', 'omni_auth', 'strategies', 'jwt')
end
end
......@@ -238,6 +238,7 @@ work.
The default environment scope is `*`, which means all jobs, regardless of their
environment, will use that cluster. Each scope can only be used by a single
cluster in a project, and a validation error will occur if otherwise.
Also, jobs that don't have an environment keyword set will not be able to access any cluster.
---
......
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