debian-mirror-gitlab/lib/gitlab/cycle_analytics/issue_event_fetcher.rb
2021-02-22 17:27:13 +05:30

29 lines
643 B
Ruby

# frozen_string_literal: true
module Gitlab
module CycleAnalytics
class IssueEventFetcher < BaseEventFetcher
include IssueHelper
def initialize(...)
@projections = [issue_table[:title],
issue_table[:iid],
issue_table[:id],
issue_table[:created_at],
issue_table[:author_id]]
super(...)
end
private
def serialize(event)
AnalyticsIssueSerializer.new(serialization_context).represent(event)
end
def allowed_ids_finder_class
IssuesFinder
end
end
end
end