diff options
author | Michael Kozono <mkozono@gmail.com> | 2019-04-23 17:42:47 +0000 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2019-04-23 17:42:47 +0000 |
commit | be15592a1c1551bb6136081ea995dca49e238c8f (patch) | |
tree | 51ac16cb873a3cb442e0b8438ae183ccc82348f0 /doc/development | |
parent | 9dfbdcc2b1eec892a49c021461d5ac0af6962b4e (diff) | |
parent | 2537b0c1e0619f03799092ed59c51692baa2cf24 (diff) | |
download | gitlab-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 'doc/development')
-rw-r--r-- | doc/development/rake_tasks.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/development/rake_tasks.md b/doc/development/rake_tasks.md index dcb32c89f65..1ae69127295 100644 --- a/doc/development/rake_tasks.md +++ b/doc/development/rake_tasks.md @@ -12,6 +12,22 @@ The `setup` task is an alias for `gitlab:setup`. This tasks calls `db:reset` to create the database, calls `add_limits_mysql` that adds limits to the database schema in case of a MySQL database and finally it calls `db:seed_fu` to seed the database. Note: `db:setup` calls `db:seed` but this does nothing. +### Seeding issues for all or a given project + +You can seed issues for all or a given project with the `gitlab:seed:issues` +task: + +```shell +# All projects +bin/rake gitlab:seed:issues + +# A specific project +bin/rake "gitlab:seed:issues[group-path/project-path]" +``` + +By default, this seeds an average of 2 issues per week for the last 5 weeks per +project. + ### Automation If you're very sure that you want to **wipe the current database** and refill |