Skip to content

Improvements to insights:issues seeder rake task

Felipe Artur requested to merge issue_413266 into master

What does this MR do and why?

General improvements to gitlab:seed:insights:issues rake task,
used to generate data for group/project insights and issue analytics charts.

  1. Allow creating a new project with group using environment var NEW_PROJECT
  2. Add milestone for created issues
  3. Add weight for new issues
  4. Allow multiple random assignees
  5. Assign due date for created issues
  6. Assign iteration for new issues
  7. Create team members
  8. Generate DORA metrics for project

related to #413266 (closed)

How to test locally

  1. Execute the rake task using an environment variable:
NEW_PROJECT=1 bin/rake gitlab:seed:insights:issues
  1. Check the charts at the following pages within analytics tab:
  • Project insights
  • Group insights
  • Project issue analytics
  • Group issue analytics

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Felipe Artur

Merge request reports