Skip to content

Add missing points in GitHub import progress details

What does this MR do and why?

This MR adds new data points to github status. ATM all available datapoints are displayed on frontend

List of all datapoints (generated by grep -hra1 'def object_type' app/workers/gitlab/github_import lib/gitlab/github_import | grep ':' | xargs -n1 echo | sort -u `):

:diff_note
:issue
:issue_attachment
:issue_event
:label
:lfs_object
:merge_request_attachment
:milestone
:note
:note_attachment
:protected_branch
:pull_request
:pull_request_merged_by
:pull_request_review
:pull_request_review_request
:release
:release_attachment

Screenshots or screen recordings

(Note this is same import being displayed)

Before After
image image

How to set up and validate locally

  • open /projects/new#import_project
  • initiate any github import for project, which contains one or more new datapoints
    • issue/PR/releases attachments
    • issue events (typical for any projects with opening/closing issues)
    • protected branches

(note that attachments and events are at the end of the import flow, so if you import big repository it might take hours to complete)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #379105 (closed)

Edited by Illya Klymov

Merge request reports