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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
7dc08033
Commit
7dc08033
authored
Jun 10, 2016
by
Z.J. van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Near half of the Issues get Award Emoji when seeding
parent
bd3324cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
db/fixtures/development/15_award_emoji.rb
db/fixtures/development/15_award_emoji.rb
+4
-4
No files found.
db/fixtures/development/15_award_emoji.rb
View file @
7dc08033
Gitlab
::
Seeder
.
quiet
do
emoji
=
Gitlab
::
AwardEmoji
.
emojis
.
keys
Issue
.
all
.
each
do
|
issue
|
issue_count
=
Issue
.
count
/
2
Issue
.
order
(
"RANDOM()"
).
limit
(
Issue
.
count
/
2
)
.
each
do
|
issue
|
project
=
issue
.
project
project
.
team
.
users
.
sample
(
2
)
do
|
user
|
project
.
team
.
users
.
sample
(
2
)
.
each
do
|
user
|
issue
.
create_award_emoji
(
emoji
.
sample
,
user
)
issue
.
notes
.
sample
(
2
).
each
do
|
note
|
...
...
@@ -16,7 +16,7 @@ Gitlab::Seeder.quiet do
end
end
MergeRequest
.
all
.
each
do
|
mr
|
MergeRequest
.
order
(
"RANDOM()"
).
limit
(
MergeRequest
.
count
/
2
)
.
each
do
|
mr
|
project
=
mr
.
project
project
.
team
.
users
.
sample
(
2
).
each
do
|
user
|
...
...
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