diff options
-rw-r--r-- | lib/gitlab/database_importers/common_metrics/importer.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/gitlab/database_importers/common_metrics/importer.rb b/lib/gitlab/database_importers/common_metrics/importer.rb index 43be5a8ee59..6c61e05674e 100644 --- a/lib/gitlab/database_importers/common_metrics/importer.rb +++ b/lib/gitlab/database_importers/common_metrics/importer.rb @@ -58,14 +58,12 @@ module Gitlab yield(metric_details['id'], attributes) end - # rubocop: disable CodeReuse/ActiveRecord def find_or_build_metric!(id) raise MissingQueryId unless id CommonMetrics::PrometheusMetric.common.find_by(identifier: id) || CommonMetrics::PrometheusMetric.new(common: true, identifier: id) end - # rubocop: enable CodeReuse/ActiveRecord def find_group_title_key(title) CommonMetrics::PrometheusMetricEnums.groups[find_group_title(title)] |