Class: Gitlab::GithubImport::Importer::NotesImporter

Inherits:
Object
  • Object
show all
Includes:
ParallelScheduling
Defined in:
lib/gitlab/github_import/importer/notes_importer.rb

Constant Summary

Constants included from ParallelScheduling

ParallelScheduling::ALREADY_IMPORTED_CACHE_KEY

Instance Attribute Summary

Attributes included from ParallelScheduling

#already_imported_cache_key, #client, #page_counter, #project

Instance Method Summary collapse

Methods included from ParallelScheduling

#already_imported?, #collection_options, #each_object_to_import, #execute, #initialize, #mark_as_imported, #parallel?, #parallel_import, #sequential_import

Instance Method Details

#collection_methodObject


21
22
23
# File 'lib/gitlab/github_import/importer/notes_importer.rb', line 21

def collection_method
  :issues_comments
end

#id_for_already_imported_cache(note) ⇒ Object


25
26
27
# File 'lib/gitlab/github_import/importer/notes_importer.rb', line 25

def id_for_already_imported_cache(note)
  note.id
end

#importer_classObject


9
10
11
# File 'lib/gitlab/github_import/importer/notes_importer.rb', line 9

def importer_class
  NoteImporter
end

#representation_classObject


13
14
15
# File 'lib/gitlab/github_import/importer/notes_importer.rb', line 13

def representation_class
  Representation::Note
end

#sidekiq_worker_classObject


17
18
19
# File 'lib/gitlab/github_import/importer/notes_importer.rb', line 17

def sidekiq_worker_class
  ImportNoteWorker
end