Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a0c16db7
Commit
a0c16db7
authored
Jul 09, 2019
by
Ryan Cobb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary rubocop disable
parent
df8a56e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
lib/gitlab/database_importers/common_metrics/importer.rb
lib/gitlab/database_importers/common_metrics/importer.rb
+0
-2
No files found.
lib/gitlab/database_importers/common_metrics/importer.rb
View file @
a0c16db7
...
...
@@ -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
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment