Add Group Seeder rake task
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-2 Subgroups per level
- 1-2 Epics & 1-2 Milestones per group
- 1-2 Projects per group
- Project issues
- 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
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
N/A
Security
N/A