a few more fixes
This commit is contained in:
parent
056b0f1993
commit
bbb9f84082
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
module Gitlab
|
||||
module CycleAnalytics
|
||||
class ProductionEventFetcher < BaseEventFetcher
|
||||
class ProductionEventFetcher < IssueEventFetcher
|
||||
include IssueAllowed
|
||||
|
||||
def initialize(*args)
|
||||
|
|
|
|||
Loading…
Reference in New Issue