BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
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