Add warning prompt when using non Internal Event generators
Problem
In parallel with the new generators (bundle exec rails generate gitlab:analytics:internal_events
) we have old ones (bundle exec rails generate gitlab:usage_metric_definition
and generate gitlab:snowplow_event_definition
).
It is confusing which one to use (should be internal_events
) as there is no warnings or deprecation indications.
Desired Outcome
For generate gitlab:usage_metric_definition
(and related redis_hll
one):
Add deprecations warning and prompt ("Are you sure you want to create deprecated definition?") to template creation.
For generate gitlab:snowplow_event_definition
:
Remove the generator, test and update any mention in the docs (if any exist) to refer to generate gitlab:analytics:internal_events
.
This would help other developers avoid wasting time for creating wrong definitions and reduce confusing.