Welcome to mirror list, hosted at ThFree Co, Russian Federation.

issue_events_importer.rb « importer « github_import « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 71dd99f91f9dc60e48664c7ce404dcae24c9ef53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# frozen_string_literal: true

module Gitlab
  module GithubImport
    module Importer
      class IssueEventsImporter
        include ParallelScheduling

        def importer_class
          IssueEventImporter
        end

        def representation_class
          Representation::IssueEvent
        end

        def sidekiq_worker_class
          ImportIssueEventWorker
        end

        def object_type
          :issue_event
        end

        def collection_method
          :repository_issue_events
        end

        def id_for_already_imported_cache(event)
          event.id
        end
      end
    end
  end
end