gitlab-org--gitlab-foss/lib/gitlab/cycle_analytics/issue_event_fetcher.rb

30 lines
642 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Gitlab
module CycleAnalytics
2016-12-02 11:09:29 -05:00
class IssueEventFetcher < BaseEventFetcher
include IssueHelper
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)
end
def allowed_ids_finder_class
IssuesFinder
end
end
end
end