Skip to content
Snippets Groups Projects
Commit bbb9f840 authored by James Lopez's avatar James Lopez
Browse files

a few more fixes

parent 056b0f19
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
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
module Gitlab
module CycleAnalytics
class ProductionEventFetcher < BaseEventFetcher
class ProductionEventFetcher < IssueEventFetcher
include IssueAllowed
 
def initialize(*args)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment