2016-11-16 06:01:10 -05:00
|
|
|
module Gitlab
|
|
|
|
module CycleAnalytics
|
2016-12-02 11:09:29 -05:00
|
|
|
class IssueEventFetcher < BaseEventFetcher
|
2016-12-07 03:25:11 -05:00
|
|
|
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)
|
2017-01-27 08:37:14 -05:00
|
|
|
AnalyticsIssueSerializer.new(project: @project).represent(event)
|
2016-12-07 03:25:11 -05:00
|
|
|
end
|
2016-11-16 06:01:10 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|