Commit cb7a2938 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'sh-mute-notifications-seeder' into 'master'

Mute notifications in the seeder to speed GDK development

See merge request gitlab-org/gitlab-ce!16747
parents 70a7164e 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 "\nOK".color(:green) puts "\nOK".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
......
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