Skip to content

Add Group Seeder rake task

George Koltsov requested to merge georgekoltsov/group_seeder_rake_task into master

What does this MR do?

This MR adds a rake task for local group seeding. It is quite handy for development and testing of Group Import/Export functionality that is currently WIP !19560 (closed) (similarly to Project Import/Export but for groups).

Default local env seeding does not offer the test data required for Group Import/Export testing. To have nested subgroups with projects in each group, with epics, milestones, and projects using those epics and milestones.

Seed test groups with:

  1. 1-2 Subgroups per level
  2. 1-2 Epics & 1-2 Milestones per group
  3. 1-2 Projects per group
  4. Project issues
  5. 1-2 Users & group members per group

It also assigns each project's issue with one of group's or ascendants groups milestone & epic.

bundle exec rake "gitlab:import_export:group_seed[2, root]"

A task with subgroup depth 5 takes around 7 minutes to run.

Screenshots

image

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

N/A

Security

N/A

Merge request reports