2019-02-15 15:39:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
module Gitlab
|
|
|
|
module CycleAnalytics
|
|
|
|
class IssueEventFetcher < BaseEventFetcher
|
2019-09-04 21:01:54 +05:30
|
|
|
include IssueHelper
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
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)
|
|
|
|
end
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
def allowed_ids_finder_class
|
|
|
|
IssuesFinder
|
|
|
|
end
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|