2018-11-06 04:45:35 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-11-16 11:01:10 +00:00
|
|
|
module Gitlab
|
|
|
|
module CycleAnalytics
|
2016-12-02 16:09:29 +00:00
|
|
|
class IssueEventFetcher < BaseEventFetcher
|
2019-06-17 13:17:18 +00:00
|
|
|
include IssueHelper
|
|
|
|
|
2016-12-07 08:25:11 +00:00
|
|
|
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 13:37:14 +00:00
|
|
|
AnalyticsIssueSerializer.new(project: @project).represent(event)
|
2016-12-07 08:25:11 +00:00
|
|
|
end
|
2017-07-11 18:29:33 +00:00
|
|
|
|
|
|
|
def allowed_ids_finder_class
|
|
|
|
IssuesFinder
|
|
|
|
end
|
2016-11-16 11:01:10 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|