diff options
author | Rémy Coutable <remy@rymai.me> | 2019-04-17 13:23:06 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-04-23 12:43:53 +0300 |
commit | 2537b0c1e0619f03799092ed59c51692baa2cf24 (patch) | |
tree | 416f3d4c4bf625dc5215726daac8a7dcd2340d2e /db/fixtures | |
parent | 383642e10056101dc29d1242c2158b9d911386a9 (diff) |
Provide a new gitlab:seed:issues task
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'db/fixtures')
-rw-r--r-- | db/fixtures/development/09_issues.rb | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/db/fixtures/development/09_issues.rb b/db/fixtures/development/09_issues.rb index 926401d8b9e..582a5203d1d 100644 --- a/db/fixtures/development/09_issues.rb +++ b/db/fixtures/development/09_issues.rb @@ -1,23 +1,5 @@ require './spec/support/sidekiq' Gitlab::Seeder.quiet do - Project.all.each do |project| - 10.times do - label_ids = project.labels.pluck(:id).sample(3) - label_ids += project.group.labels.sample(3) if project.group - - issue_params = { - title: FFaker::Lorem.sentence(6), - description: FFaker::Lorem.sentence, - state: ['opened', 'closed'].sample, - milestone: project.milestones.sample, - assignees: [project.team.users.sample], - created_at: rand(12).months.ago, - label_ids: label_ids - } - - Issues::CreateService.new(project, project.team.users.sample, issue_params).execute - print '.' - end - end + Rake::Task["gitlab:seed:issues"].invoke end |