summaryrefslogtreecommitdiff
path: root/lib/gitlab/github_import/importer/notes_importer.rb
blob: 5aec760ea5f25dd7cda491b35da1a8976ef570f1 (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 NotesImporter
        include ParallelScheduling

        def importer_class
          NoteImporter
        end

        def representation_class
          Representation::Note
        end

        def sidekiq_worker_class
          ImportNoteWorker
        end

        def collection_method
          :issues_comments
        end

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