Class: Gitlab::GithubImport::Importer::DiffNotesImporter
- Inherits:
-
Object
- Object
- Gitlab::GithubImport::Importer::DiffNotesImporter
show all
- Includes:
- ParallelScheduling
- Defined in:
- lib/gitlab/github_import/importer/diff_notes_importer.rb
Constant Summary
ParallelScheduling::ALREADY_IMPORTED_CACHE_KEY, ParallelScheduling::JOB_WAITER_CACHE_KEY, ParallelScheduling::JOB_WAITER_REMAINING_CACHE_KEY
Instance Attribute Summary
#already_imported_cache_key, #client, #job_waiter_cache_key, #job_waiter_remaining_cache_key, #page_counter, #project
Instance Method Summary
collapse
#abort_on_failure, #already_imported?, #collection_options, #each_object_to_import, #execute, #increment_object_counter?, #initialize, #mark_as_imported, #parallel?, #parallel_import, #sequential_import, #spread_parallel_import
#parallel_import_batch
Instance Method Details
#collection_method ⇒ Object
21
22
23
|
# File 'lib/gitlab/github_import/importer/diff_notes_importer.rb', line 21
def collection_method
:pull_requests_comments
end
|
#id_for_already_imported_cache(note) ⇒ Object
29
30
31
|
# File 'lib/gitlab/github_import/importer/diff_notes_importer.rb', line 29
def id_for_already_imported_cache(note)
note[:id]
end
|
#importer_class ⇒ Object
13
14
15
|
# File 'lib/gitlab/github_import/importer/diff_notes_importer.rb', line 13
def importer_class
DiffNoteImporter
end
|
#object_type ⇒ Object
25
26
27
|
# File 'lib/gitlab/github_import/importer/diff_notes_importer.rb', line 25
def object_type
:diff_note
end
|
#representation_class ⇒ Object
9
10
11
|
# File 'lib/gitlab/github_import/importer/diff_notes_importer.rb', line 9
def representation_class
Representation::DiffNote
end
|
#sidekiq_worker_class ⇒ Object
17
18
19
|
# File 'lib/gitlab/github_import/importer/diff_notes_importer.rb', line 17
def sidekiq_worker_class
ImportDiffNoteWorker
end
|