gitlab-org--gitlab-foss/lib/gitlab/cycle_analytics/issue_event_fetcher.rb
2017-01-17 11:32:55 +01:00

23 lines
554 B
Ruby

module Gitlab
module CycleAnalytics
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).as_json
end
end
end
end