summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-06-10 12:43:11 +0200
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-06-15 11:55:41 +0200
commitbd3324cca2fefb00e421c4dc1fb276db540d08bd (patch)
treeedc37c78b4b5cbca4676f2dddd8c0a3f814b4b40 /db
parent080cbcabd96b27e300b3a85e11399d3f4449d335 (diff)
downloadgitlab-ce-bd3324cca2fefb00e421c4dc1fb276db540d08bd.tar.gz
Skip system notes from receiving award emoji
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/development/15_award_emoji.rb14
1 files changed, 10 insertions, 4 deletions
diff --git a/db/fixtures/development/15_award_emoji.rb b/db/fixtures/development/15_award_emoji.rb
index 3ac3fea43a5..e195da931ed 100644
--- a/db/fixtures/development/15_award_emoji.rb
+++ b/db/fixtures/development/15_award_emoji.rb
@@ -7,8 +7,11 @@ Gitlab::Seeder.quiet do
project.team.users.sample(2) do |user|
issue.create_award_emoji(emoji.sample, user)
- note = issue.notes.sample
- note.create_award_emoji(emoji.sample, user)
+ issue.notes.sample(2).each do |note|
+ next if note.system?
+ note.create_award_emoji(emoji.sample, user)
+ end
+
print '.'
end
end
@@ -19,8 +22,11 @@ Gitlab::Seeder.quiet do
project.team.users.sample(2).each do |user|
mr.create_award_emoji(emoji.sample, user)
- note = mr.notes.sample
- note.create_award_emoji(emoji.sample, user)
+ mr.notes.sample(2).each do |note|
+ next if note.system?
+ note.create_award_emoji(emoji.sample, user)
+ end
+
print '.'
end
end