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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
9521736e
Commit
9521736e
authored
Oct 13, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated var name based on feedback
parent
42ba19f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/models/cycle_analytics.rb
app/models/cycle_analytics.rb
+2
-2
No files found.
app/models/cycle_analytics.rb
View file @
9521736e
...
...
@@ -2,7 +2,7 @@ class CycleAnalytics
include
Gitlab
::
Database
::
Median
include
Gitlab
::
Database
::
DateTime
DEPLOY
ED_CHECK_METRIC
S
=
%i[production staging]
DEPLOY
MENT_METRIC_STAGE
S
=
%i[production staging]
def
initialize
(
project
,
from
:)
@project
=
project
...
...
@@ -93,7 +93,7 @@ class CycleAnalytics
join
(
MergeRequest
::
Metrics
.
arel_table
).
on
(
MergeRequest
.
arel_table
[
:id
].
eq
(
MergeRequest
::
Metrics
.
arel_table
[
:merge_request_id
]))
if
DEPLOY
ED_CHECK_METRIC
S
.
include?
(
name
)
if
DEPLOY
MENT_METRIC_STAGE
S
.
include?
(
name
)
# Limit to merge requests that have been deployed to production after `@from`
query
.
where
(
MergeRequest
::
Metrics
.
arel_table
[
:first_deployed_to_production_at
].
gteq
(
@from
))
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