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
eb6b9e44
Commit
eb6b9e44
authored
Apr 18, 2019
by
syasonik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce cognitive complexity of AlertsInserter
parent
4fde19a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ee/lib/ee/gitlab/metrics_dashboard/stages/alerts_inserter.rb
ee/lib/ee/gitlab/metrics_dashboard/stages/alerts_inserter.rb
+2
-3
No files found.
ee/lib/ee/gitlab/metrics_dashboard/stages/alerts_inserter.rb
View file @
eb6b9e44
...
...
@@ -11,10 +11,9 @@ module EE
alerts
=
metrics_with_alerts
for_metrics
do
|
metric
|
next
unless
metric_id
=
metric
[
:metric_id
]
next
unless
alerts
.
include?
(
metric_id
)
next
unless
alerts
.
include?
(
metric
[
:metric_id
])
metric
[
:alert_path
]
=
alert_path
(
metric
_id
,
project
,
environment
)
metric
[
:alert_path
]
=
alert_path
(
metric
[
:metric_id
]
,
project
,
environment
)
end
end
...
...
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