blob: 4c7b3f4467f5c31f2d5c50a1293d5b5bf057a0fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
module Gitlab
module CycleAnalytics
class ReviewEventFetcher < BaseEventFetcher
include MergeRequestAllowed
def initialize(*args)
@projections = [mr_table[:title],
mr_table[:iid],
mr_table[:id],
mr_table[:created_at],
mr_table[:state],
mr_table[:author_id]]
super(*args)
end
def serialize(event)
AnalyticsMergeRequestSerializer.new(project: @project).represent(event)
end
end
end
end
|