Fix 90_productivity_analytics.rb seed
90_productivity_analytics.rb fixture could cover some data for a variety of groupoptimize owned features:
- Contributions Analytics(Group/Project)
- Productivity analytics
- Code review
- Merge request analytics
In order to get these features data covered we should do the following:
- Accept optional parameter
PROJECT_ID
in order to create some data. The current implementation runs the seed for all projects. - Fix dates range to have MRs and Issues
created_at
spread across three months. - Have different users creating commits/issues/merge requests
- Print on STDOUT project URL when seed finishes
- OPTIONAL - When
PROJECT_ID
is not present we could probably create a group with a project instead of seeding all projects.
Edited by Felipe Cardozo