Skip to content

Include constraints in suggested metric names [RUN ALL RSPEC] [RUN AS-IF-FOSS]

What does this MR do?

This MR enhances automated metrics name generation feature by including variable part in metric names suggestion (enclosed in <>) if underlying metric query includes constraints (where source_table.some_col = 123) that applies to source relation of the metric. Handling joined relation is scope of follow up issue #323219 (closed)

Implementes #323193 (closed)

Test locally

Make sure that feature flag is enabled ::Feature.enable(:product_intelligence_metrics_names_suggestions)

Run generator $ bundle exec rails generate gitlab:usage_metric_definition counts.jira_imports_total_imported_issues_count --dir=7d

Screenshots (strongly suggested)

Screenshot_2021-03-08_at_11.46.11

Does this MR meet the acceptance criteria?

Conformity

Edited by Mikołaj Wawrzyniak

Merge request reports