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

diff_notes_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: 966f12c5c2f8db16017447cc09acb1ebeb60d69b (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
# frozen_string_literal: true

module Gitlab
  module GithubImport
    module Importer
      class DiffNotesImporter
        include ParallelScheduling

        def representation_class
          Representation::DiffNote
        end

        def importer_class
          DiffNoteImporter
        end

        def sidekiq_worker_class
          ImportDiffNoteWorker
        end

        def collection_method
          :pull_requests_comments
        end

        def id_for_already_imported_cache(note)
          note.id
        end
      end
    end
  end
end