Module: Gitlab::GithubImport::SingleEndpointNotesImporting
- 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_keyset_id(parent) ⇒ Object
- #parent_collection ⇒ Object
- #parent_imported_cache_key ⇒ Object
Instance Method Details
#each_object_to_import(&block) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/gitlab/github_import/single_endpoint_notes_importing.rb', line 24 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
32 33 34 |
# File 'lib/gitlab/github_import/single_endpoint_notes_importing.rb', line 32 def id_for_already_imported_cache(associated) associated[:id] end |
#page_keyset_id(parent) ⇒ Object
44 45 46 |
# File 'lib/gitlab/github_import/single_endpoint_notes_importing.rb', line 44 def page_keyset_id(parent) raise NotImplementedError end |
#parent_collection ⇒ Object
36 37 38 |
# File 'lib/gitlab/github_import/single_endpoint_notes_importing.rb', line 36 def parent_collection raise NotImplementedError end |
#parent_imported_cache_key ⇒ Object
40 41 42 |
# File 'lib/gitlab/github_import/single_endpoint_notes_importing.rb', line 40 def parent_imported_cache_key raise NotImplementedError end |