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

24 lines
546 B
Ruby
Raw Normal View History

module Gitlab
module CycleAnalytics
2016-12-02 11:09:29 -05:00
class IssueEventFetcher < BaseEventFetcher
include IssueAllowed
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
end
end
end