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
04dea654
Commit
04dea654
authored
Jul 04, 2019
by
Małgorzata Ksionek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop offences
parent
06385da4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/cycle_analytics/base_query.rb
lib/gitlab/cycle_analytics/base_query.rb
+1
-1
lib/gitlab/cycle_analytics/usage_data.rb
lib/gitlab/cycle_analytics/usage_data.rb
+1
-1
No files found.
lib/gitlab/cycle_analytics/base_query.rb
View file @
04dea654
...
@@ -10,7 +10,7 @@ module Gitlab
...
@@ -10,7 +10,7 @@ module Gitlab
private
private
def
base_query
def
base_query
@base_query
||=
stage_query
(
projects
.
map
(
&
:id
))
# rubocop:disable Gitlab/ModuleWithInstanceVariables
@base_query
||=
stage_query
(
projects
.
map
(
&
:id
))
end
end
def
stage_query
(
project_ids
)
def
stage_query
(
project_ids
)
...
...
lib/gitlab/cycle_analytics/usage_data.rb
View file @
04dea654
...
@@ -32,7 +32,7 @@ module Gitlab
...
@@ -32,7 +32,7 @@ module Gitlab
def
medians_per_stage
def
medians_per_stage
projects
.
each_with_object
({})
do
|
project
,
hsh
|
projects
.
each_with_object
({})
do
|
project
,
hsh
|
::
CycleAnalytics
::
ProjectLevel
.
new
(
project:
project
,
options:
options
).
all_medians_per_stage
.
each
do
|
stage_name
,
median
|
hsh
[
stage_name
]
||=
[]
::
CycleAnalytics
::
ProjectLevel
.
new
(
project:
project
,
options:
options
).
all_medians_per_stage
.
each
do
|
stage_name
,
median
|
hsh
[
stage_name
]
<<
median
hsh
[
stage_name
]
<<
median
end
end
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