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
bbb9f840
Commit
bbb9f840
authored
Dec 05, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a few more fixes
parent
056b0f19
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
19 deletions
+2
-19
cycle_analytics.rb
app/models/cycle_analytics.rb
+1
-1
issue_event_fetcher.rb
lib/gitlab/cycle_analytics/issue_event_fetcher.rb
+0
-17
production_event_fetcher.rb
lib/gitlab/cycle_analytics/production_event_fetcher.rb
+1
-1
No files found.
app/models/cycle_analytics.rb
View file @
bbb9f840
...
...
@@ -32,7 +32,7 @@ class CycleAnalytics
def
stats_per_stage
STAGES
.
map
do
|
stage_name
|
self
[
stage_name
].
new
(
project:
@project
,
options:
@options
).
median_data
self
[
stage_name
].
median_data
end
end
end
lib/gitlab/cycle_analytics/issue_event_fetcher.rb
View file @
bbb9f840
module
Gitlab
module
CycleAnalytics
class
IssueEventFetcher
<
BaseEventFetcher
include
IssueAllowed
def
initialize
(
*
args
)
@projections
=
[
issue_table
[
:title
],
issue_table
[
:iid
],
issue_table
[
:id
],
issue_table
[
:created_at
],
issue_table
[
:author_id
]]
super
(
*
args
)
end
private
def
serialize
(
event
)
AnalyticsIssueSerializer
.
new
(
project:
@project
).
represent
(
event
).
as_json
end
end
end
end
lib/gitlab/cycle_analytics/production_event_fetcher.rb
View file @
bbb9f840
module
Gitlab
module
CycleAnalytics
class
ProductionEventFetcher
<
Bas
eEventFetcher
class
ProductionEventFetcher
<
Issu
eEventFetcher
include
IssueAllowed
def
initialize
(
*
args
)
...
...
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