gitlab-org--gitlab-foss/lib/gitlab/cycle_analytics/issue_event_fetcher.rb
Lin Jen-Shin 0b6d01ed77 Just define allowed_ids and override it with empty value
if not needed for those sub-classes.
2017-11-22 17:06:57 +08:00

25 lines
585 B
Ruby

module Gitlab
module CycleAnalytics
class IssueEventFetcher < BaseEventFetcher
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
def allowed_ids_finder_class
IssuesFinder
end
end
end
end