debian-mirror-gitlab/lib/gitlab/cycle_analytics/production_event_fetcher.rb

31 lines
702 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
module Gitlab
module CycleAnalytics
2019-09-04 21:01:54 +05:30
class ProductionEventFetcher < BaseEventFetcher
include ProductionHelper
def initialize(*args)
@projections = [issue_table[:title],
issue_table[:iid],
issue_table[:id],
issue_table[:created_at],
2019-10-12 21:52:04 +05:30
issue_table[:author_id],
routes_table[:path]]
2019-09-04 21:01:54 +05:30
super(*args)
end
private
def serialize(event)
2019-10-12 21:52:04 +05:30
AnalyticsIssueSerializer.new(serialization_context).represent(event)
2019-09-04 21:01:54 +05:30
end
def allowed_ids_finder_class
IssuesFinder
end
2017-08-17 22:00:37 +05:30
end
end
end