2014-09-02 18:07:02 +05:30
|
|
|
Gitlab::Seeder.quiet do
|
|
|
|
Issue.all.each do |issue|
|
|
|
|
project = issue.project
|
|
|
|
|
|
|
|
project.team.users.each do |user|
|
|
|
|
note_params = {
|
|
|
|
noteable_type: 'Issue',
|
|
|
|
noteable_id: issue.id,
|
2015-09-11 14:41:01 +05:30
|
|
|
note: FFaker::Lorem.sentence,
|
2014-09-02 18:07:02 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
Notes::CreateService.new(project, user, note_params).execute
|
|
|
|
print '.'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
MergeRequest.all.each do |mr|
|
|
|
|
project = mr.project
|
|
|
|
|
|
|
|
project.team.users.each do |user|
|
|
|
|
note_params = {
|
|
|
|
noteable_type: 'MergeRequest',
|
|
|
|
noteable_id: mr.id,
|
2015-09-11 14:41:01 +05:30
|
|
|
note: FFaker::Lorem.sentence,
|
2014-09-02 18:07:02 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
Notes::CreateService.new(project, user, note_params).execute
|
|
|
|
print '.'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|