plan_event_fetcher.rb 645 字节
Newer Older
1 2
# frozen_string_literal: true

3 4
module Gitlab
  module CycleAnalytics
J
James Lopez 已提交
5
    class PlanEventFetcher < BaseEventFetcher
G
Gosia Ksionek 已提交
6 7
      include PlanHelper

8
      def initialize(*args)
G
Gosia Ksionek 已提交
9 10 11 12
        @projections = [issue_table[:title],
                        issue_table[:iid],
                        issue_table[:id],
                        issue_table[:created_at],
G
Gosia Ksionek 已提交
13
                        issue_table[:author_id]]
14 15 16

        super(*args)
      end
17

18
      private
19

20
      def serialize(event)
21
        AnalyticsIssueSerializer.new(serialization_context).represent(event)
22
      end
23

G
Gosia Ksionek 已提交
24 25
      def allowed_ids_finder_class
        IssuesFinder
26 27 28
      end
    end
  end
J
James Lopez 已提交
29
end