Skip to content

Automatically get section and stage based on group

Jonas Larsen requested to merge j_lar/improve_internal_events_generator into master

What does this MR do and why?

Instead of asking the user to input section, stage and group we now only require the group argument.

The provided group is validated against https://gitlab.com/gitlab-com/www-gitlab-com/blob/master/data/stages.yml from where section and stage is also extracted.

As you can see in the updated documentation, you can now call the generator like this

bundle exec rails generate gitlab:analytics:internal_events \
--time_frames=7d 28d \
--group=project_management \
--event=project_created \
--unique=user.id \
--mr=https://gitlab.com/gitlab-org/gitlab/-/merge_requests/121544

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 Jonas Larsen

Merge request reports

Loading