summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2019-04-23 17:42:47 +0000
committerMichael Kozono <mkozono@gmail.com>2019-04-23 17:42:47 +0000
commitbe15592a1c1551bb6136081ea995dca49e238c8f (patch)
tree51ac16cb873a3cb442e0b8438ae183ccc82348f0 /db
parent9dfbdcc2b1eec892a49c021461d5ac0af6962b4e (diff)
parent2537b0c1e0619f03799092ed59c51692baa2cf24 (diff)
downloadgitlab-ce-be15592a1c1551bb6136081ea995dca49e238c8f.tar.gz
Merge branch 'ce-11199-add-a-rake-task-to-seed-insights-data-for-a-given-project' into 'master'
Provide a new gitlab:seed:issues task See merge request gitlab-org/gitlab-ce!27454
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/development/09_issues.rb20
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