Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3c72a0a5
Commit
3c72a0a5
authored
Apr 30, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts
parent
8fa498c0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
33 deletions
+0
-33
app/models/members/group_member.rb
app/models/members/group_member.rb
+0
-12
app/models/members/project_member.rb
app/models/members/project_member.rb
+0
-12
app/services/notification_service.rb
app/services/notification_service.rb
+0
-6
config/initializers/omniauth.rb
config/initializers/omniauth.rb
+0
-3
No files found.
app/models/members/group_member.rb
View file @
3c72a0a5
...
@@ -42,32 +42,20 @@ class GroupMember < Member
...
@@ -42,32 +42,20 @@ class GroupMember < Member
private
private
def
send_invite
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
)
}
unless
@skip_notification
=======
run_after_commit_or_now
{
notification_service
.
invite_group_member
(
self
,
@raw_invite_token
)
}
>>>>>>>
upstream
/
master
super
super
end
end
def
post_create_hook
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
)
}
unless
@skip_notification
=======
run_after_commit_or_now
{
notification_service
.
new_group_member
(
self
)
}
>>>>>>>
upstream
/
master
super
super
end
end
def
post_update_hook
def
post_update_hook
if
access_level_changed?
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
)
}
unless
@skip_notification
=======
run_after_commit
{
notification_service
.
update_group_member
(
self
)
}
>>>>>>>
upstream
/
master
end
end
super
super
...
...
app/models/members/project_member.rb
View file @
3c72a0a5
...
@@ -101,11 +101,7 @@ class ProjectMember < Member
...
@@ -101,11 +101,7 @@ class ProjectMember < Member
end
end
def
send_invite
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
)
}
unless
@skip_notification
=======
run_after_commit_or_now
{
notification_service
.
invite_project_member
(
self
,
@raw_invite_token
)
}
>>>>>>>
upstream
/
master
super
super
end
end
...
@@ -113,11 +109,7 @@ class ProjectMember < Member
...
@@ -113,11 +109,7 @@ class ProjectMember < Member
def
post_create_hook
def
post_create_hook
unless
owner?
unless
owner?
event_service
.
join_project
(
self
.
project
,
self
.
user
)
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
)
}
unless
@skip_notification
=======
run_after_commit_or_now
{
notification_service
.
new_project_member
(
self
)
}
>>>>>>>
upstream
/
master
end
end
super
super
...
@@ -125,11 +117,7 @@ class ProjectMember < Member
...
@@ -125,11 +117,7 @@ class ProjectMember < Member
def
post_update_hook
def
post_update_hook
if
access_level_changed?
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
)
}
unless
@skip_notification
=======
run_after_commit
{
notification_service
.
update_project_member
(
self
)
}
>>>>>>>
upstream
/
master
end
end
super
super
...
...
app/services/notification_service.rb
View file @
3c72a0a5
...
@@ -14,11 +14,8 @@
...
@@ -14,11 +14,8 @@
# NotificationService.new.async.new_issue(issue, current_user)
# NotificationService.new.async.new_issue(issue, current_user)
#
#
class
NotificationService
class
NotificationService
<<<<<<<
HEAD
prepend
EE
::
NotificationService
prepend
EE
::
NotificationService
=======
>>>>>>>
upstream
/
master
class
Async
class
Async
attr_reader
:parent
attr_reader
:parent
delegate
:respond_to_missing
,
to: :parent
delegate
:respond_to_missing
,
to: :parent
...
@@ -526,7 +523,6 @@ class NotificationService
...
@@ -526,7 +523,6 @@ class NotificationService
end
end
end
end
<<<<<<<
HEAD
def
add_mr_approvers_email
(
merge_request
,
approvers
,
current_user
)
def
add_mr_approvers_email
(
merge_request
,
approvers
,
current_user
)
approvers
.
each
do
|
approver
|
approvers
.
each
do
|
approver
|
recipient
=
approver
.
user
recipient
=
approver
.
user
...
@@ -539,8 +535,6 @@ class NotificationService
...
@@ -539,8 +535,6 @@ class NotificationService
Notify
Notify
end
end
=======
>>>>>>>
upstream
/
master
private
private
def
recipients_for_pages_domain
(
domain
)
def
recipients_for_pages_domain
(
domain
)
...
...
config/initializers/omniauth.rb
View file @
3c72a0a5
...
@@ -26,10 +26,7 @@ end
...
@@ -26,10 +26,7 @@ end
module
OmniAuth
module
OmniAuth
module
Strategies
module
Strategies
autoload
:Bitbucket
,
Rails
.
root
.
join
(
'lib'
,
'omni_auth'
,
'strategies'
,
'bitbucket'
)
autoload
:Bitbucket
,
Rails
.
root
.
join
(
'lib'
,
'omni_auth'
,
'strategies'
,
'bitbucket'
)
<<<<<<<
HEAD
autoload
:GroupSaml
,
Rails
.
root
.
join
(
'ee'
,
'lib'
,
'omni_auth'
,
'strategies'
,
'group_saml'
)
autoload
:GroupSaml
,
Rails
.
root
.
join
(
'ee'
,
'lib'
,
'omni_auth'
,
'strategies'
,
'group_saml'
)
=======
>>>>>>>
upstream
/
master
autoload
:Jwt
,
Rails
.
root
.
join
(
'lib'
,
'omni_auth'
,
'strategies'
,
'jwt'
)
autoload
:Jwt
,
Rails
.
root
.
join
(
'lib'
,
'omni_auth'
,
'strategies'
,
'jwt'
)
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment