summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Cobb <rcobb@gitlab.com>2019-07-01 15:56:45 -0700
committerRyan Cobb <rcobb@gitlab.com>2019-07-09 17:02:08 -0600
commit3cabc5581e4d96180c83fbe3d24362bb2c64f2be (patch)
tree67597c25dccce56c53d058ece87ae09aceb31215
parent4727effb083b27adb7754fc8ebf881f7e128febf (diff)
downloadgitlab-ce-3cabc5581e4d96180c83fbe3d24362bb2c64f2be.tar.gz
Fully namespace importer dependencies
-rw-r--r--lib/gitlab/importers/common_metrics/importer.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/gitlab/importers/common_metrics/importer.rb b/lib/gitlab/importers/common_metrics/importer.rb
index c916af58820..8dbdb03409a 100644
--- a/lib/gitlab/importers/common_metrics/importer.rb
+++ b/lib/gitlab/importers/common_metrics/importer.rb
@@ -13,7 +13,7 @@ module Gitlab
end
def execute
- PrometheusMetric.reset_column_information
+ ::Gitlab::Importers::CommonMetrics::PrometheusMetric.reset_column_information
process_content do |id, attributes|
find_or_build_metric!(id)
@@ -62,17 +62,17 @@ module Gitlab
def find_or_build_metric!(id)
raise MissingQueryId unless id
- PrometheusMetric.common.find_by(identifier: id) ||
- PrometheusMetric.new(common: true, identifier: id)
+ ::Gitlab::Importers::CommonMetrics::PrometheusMetric.common.find_by(identifier: id) ||
+ ::Gitlab::Importers::CommonMetrics::PrometheusMetric.new(common: true, identifier: id)
end
# rubocop: enable CodeReuse/ActiveRecord
def find_group_title_key(title)
- PrometheusMetricEnums.groups[find_group_title(title)]
+ ::Gitlab::Importers::CommonMetrics::PrometheusMetricEnums.groups[find_group_title(title)]
end
def find_group_title(title)
- PrometheusMetricEnums.group_titles.invert[title]
+ ::Gitlab::Importers::CommonMetrics::PrometheusMetricEnums.group_titles.invert[title]
end
end
end