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