Module: Gitlab::GithubImport::SingleEndpointNotesImporting
- Included in:
- Importer::SingleEndpointDiffNotesImporter, Importer::SingleEndpointIssueEventsImporter, Importer::SingleEndpointIssueNotesImporter, Importer::SingleEndpointMergeRequestNotesImporter
- Defined in:
- lib/gitlab/github_import/single_endpoint_notes_importing.rb
Constant Summary collapse
- BATCH_SIZE =
100
Instance Method Summary collapse
- #each_object_to_import(&block) ⇒ Object
- #id_for_already_imported_cache(associated) ⇒ Object
- #page_counter_id(parent) ⇒ Object
- #parent_collection ⇒ Object
- #parent_imported_cache_key ⇒ Object
Instance Method Details
#each_object_to_import(&block) ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/gitlab/github_import/single_endpoint_notes_importing.rb', line 26 def each_object_to_import(&block) each_associated_page do |parent_record, associated_page| associated_page.objects.each do |associated| each_associated(parent_record, associated, &block) end end end |
#id_for_already_imported_cache(associated) ⇒ Object
34 35 36 |
# File 'lib/gitlab/github_import/single_endpoint_notes_importing.rb', line 34 def id_for_already_imported_cache(associated) associated[:id] end |
#page_counter_id(parent) ⇒ Object
46 47 48 |
# File 'lib/gitlab/github_import/single_endpoint_notes_importing.rb', line 46 def page_counter_id(parent) raise NotImplementedError end |
#parent_collection ⇒ Object
38 39 40 |
# File 'lib/gitlab/github_import/single_endpoint_notes_importing.rb', line 38 def parent_collection raise NotImplementedError end |
#parent_imported_cache_key ⇒ Object
42 43 44 |
# File 'lib/gitlab/github_import/single_endpoint_notes_importing.rb', line 42 def parent_imported_cache_key raise NotImplementedError end |