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
8bdced42
Commit
8bdced42
authored
Jan 26, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mute notifications in the seeder to speed GDK development
parent
98dd4927
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
lib/gitlab/seeder.rb
lib/gitlab/seeder.rb
+10
-0
No files found.
lib/gitlab/seeder.rb
View file @
8bdced42
...
@@ -5,9 +5,15 @@ module DeliverNever
...
@@ -5,9 +5,15 @@ module DeliverNever
end
end
end
end
module
MuteNotifications
def
new_note
(
note
)
end
end
module
Gitlab
module
Gitlab
class
Seeder
class
Seeder
def
self
.
quiet
def
self
.
quiet
mute_notifications
mute_mailer
mute_mailer
SeedFu
.
quiet
=
true
SeedFu
.
quiet
=
true
...
@@ -18,6 +24,10 @@ module Gitlab
...
@@ -18,6 +24,10 @@ module Gitlab
puts
"
\n
OK"
.
color
(
:green
)
puts
"
\n
OK"
.
color
(
:green
)
end
end
def
self
.
mute_notifications
NotificationService
.
prepend
(
MuteNotifications
)
end
def
self
.
mute_mailer
def
self
.
mute_mailer
ActionMailer
::
MessageDelivery
.
prepend
(
DeliverNever
)
ActionMailer
::
MessageDelivery
.
prepend
(
DeliverNever
)
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