2018-11-06 04:45:35 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-11-16 11:01:10 +00:00
|
|
|
module Gitlab
|
|
|
|
module CycleAnalytics
|
2019-06-17 13:17:18 +00:00
|
|
|
class ProductionEventFetcher < BaseEventFetcher
|
|
|
|
include ProductionHelper
|
|
|
|
|
|
|
|
def initialize(*args)
|
|
|
|
@projections = [issue_table[:title],
|
|
|
|
issue_table[:iid],
|
|
|
|
issue_table[:id],
|
|
|
|
issue_table[:created_at],
|
2019-07-04 14:42:31 +00:00
|
|
|
issue_table[:author_id],
|
|
|
|
routes_table[:path]]
|
2019-06-17 13:17:18 +00:00
|
|
|
|
|
|
|
super(*args)
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def serialize(event)
|
2019-07-04 14:42:31 +00:00
|
|
|
AnalyticsIssueSerializer.new(serialization_context).represent(event)
|
2019-06-17 13:17:18 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def allowed_ids_finder_class
|
|
|
|
IssuesFinder
|
|
|
|
end
|
2016-11-16 11:01:10 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|