Class: Gitlab::GithubImport::Importer::SingleEndpointMergeRequestNotesImporter

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

Constant Summary

Constants included from SingleEndpointNotesImporting

SingleEndpointNotesImporting::BATCH_SIZE

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 SingleEndpointNotesImporting

#each_object_to_import, #id_for_already_imported_cache

Methods included from ParallelScheduling

#abort_on_failure, #already_imported?, #collection_options, #each_object_to_import, #execute, #id_for_already_imported_cache, #initialize, #mark_as_imported, #parallel?, #parallel_import, #parallel_import_batch, #parallel_import_deprecated, #sequential_import, #spread_parallel_import

Instance Method Details

#collection_methodObject


34
35
36
# File 'lib/gitlab/github_import/importer/single_endpoint_merge_request_notes_importer.rb', line 34

def collection_method
  :issue_comments
end

#importer_classObject


18
19
20
# File 'lib/gitlab/github_import/importer/single_endpoint_merge_request_notes_importer.rb', line 18

def importer_class
  NoteImporter
end

#object_typeObject


30
31
32
# File 'lib/gitlab/github_import/importer/single_endpoint_merge_request_notes_importer.rb', line 30

def object_type
  :note
end

#representation_classObject


22
23
24
# File 'lib/gitlab/github_import/importer/single_endpoint_merge_request_notes_importer.rb', line 22

def representation_class
  Representation::Note
end

#sidekiq_worker_classObject


26
27
28
# File 'lib/gitlab/github_import/importer/single_endpoint_merge_request_notes_importer.rb', line 26

def sidekiq_worker_class
  ImportNoteWorker
end