a few more fixes

This commit is contained in:
James Lopez 2016-12-05 13:28:53 +01:00
parent 056b0f1993
commit bbb9f84082
3 changed files with 2 additions and 19 deletions

View File

@ -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

View File

@ -1,23 +1,6 @@
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

View File

@ -1,6 +1,6 @@
module Gitlab
module CycleAnalytics
class ProductionEventFetcher < BaseEventFetcher
class ProductionEventFetcher < IssueEventFetcher
include IssueAllowed
def initialize(*args)