Class: Gitlab::GithubImport::ImportIssueWorker

Inherits:
Object
  • Object
show all
Includes:
ObjectImporter
Defined in:
app/workers/gitlab/github_import/import_issue_worker.rb

Overview

rubocop:disable Scalability/IdempotentWorker

Constant Summary

Constants included from ObjectImporter

ObjectImporter::NotRetriableError

Instance Method Summary collapse

Methods included from ObjectImporter

#import, #perform_failure

Instance Method Details

#importer_classObject



12
13
14
# File 'app/workers/gitlab/github_import/import_issue_worker.rb', line 12

def importer_class
  Importer::IssueAndLabelLinksImporter
end

#increment_object_counter?(object) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'app/workers/gitlab/github_import/import_issue_worker.rb', line 20

def increment_object_counter?(object)
  !object.pull_request?
end

#object_typeObject



16
17
18
# File 'app/workers/gitlab/github_import/import_issue_worker.rb', line 16

def object_type
  :issue
end

#representation_classObject



8
9
10
# File 'app/workers/gitlab/github_import/import_issue_worker.rb', line 8

def representation_class
  Representation::Issue
end