Skip to content

GithubImporter: Count and log each object imported

What does this MR do?

Related to: #334022 (closed)

To provide a better feedback about what was imported and make it easier to debug missing objects, not the FinishImportWorker will log the number of objects imported, like:


{:message=>"GitHub project import finished",
 :duration_s=>347.25,
 :objects_imported=>
  {:fetched=>
    {:diff_note=>93,
     :issue=>321,
     :note=>794,
     :pull_request=>108,
     :pull_request_merged_by=>92,
     :pull_request_review=>81},
   :imported=>
    {:diff_note=>93,
     :issue=>321,
     :note=>794,
     :pull_request=>108,
     :pull_request_merged_by=>92,
     :pull_request_review=>81}},
 :import_source=>"github",
 :project_id=>47,
 :import_stage=>"Gitlab::GithubImport::Stage::FinishImportWorker"}

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Kassio Borges

Merge request reports