Class: Gitlab::GithubImport::Importer::IssuesImporter
- Inherits:
-
Object
- Object
- Gitlab::GithubImport::Importer::IssuesImporter
show all
- Includes:
- ParallelScheduling
- Defined in:
- lib/gitlab/github_import/importer/issues_importer.rb
Constant Summary
ParallelScheduling::ALREADY_IMPORTED_CACHE_KEY
Instance Attribute Summary
#already_imported_cache_key, #client, #page_counter, #project
Instance Method Summary
collapse
#already_imported?, #each_object_to_import, #execute, #initialize, #mark_as_imported, #parallel?, #parallel_import, #sequential_import
Instance Method Details
#collection_method ⇒ Object
21
22
23
|
# File 'lib/gitlab/github_import/importer/issues_importer.rb', line 21
def collection_method
:issues
end
|
#collection_options ⇒ Object
29
30
31
|
# File 'lib/gitlab/github_import/importer/issues_importer.rb', line 29
def collection_options
{ state: 'all', sort: 'created', direction: 'asc' }
end
|
#id_for_already_imported_cache(issue) ⇒ Object
25
26
27
|
# File 'lib/gitlab/github_import/importer/issues_importer.rb', line 25
def id_for_already_imported_cache(issue)
issue.number
end
|
#importer_class ⇒ Object
9
10
11
|
# File 'lib/gitlab/github_import/importer/issues_importer.rb', line 9
def importer_class
IssueAndLabelLinksImporter
end
|
#representation_class ⇒ Object
13
14
15
|
# File 'lib/gitlab/github_import/importer/issues_importer.rb', line 13
def representation_class
Representation::Issue
end
|
#sidekiq_worker_class ⇒ Object
17
18
19
|
# File 'lib/gitlab/github_import/importer/issues_importer.rb', line 17
def sidekiq_worker_class
ImportIssueWorker
end
|