diff options
| author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-07 18:07:51 +0000 |
|---|---|---|
| committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-07 18:07:51 +0000 |
| commit | 6cae2159b8ce1e84fad48f3dbd5368995cbd87b1 (patch) | |
| tree | 46d6b7cbd78d72fe5dcb5d6b1ed973b30deadc71 /app/controllers/import | |
| parent | 84f9f0cb8137637708a41152347e7754c1e9fb83 (diff) | |
| download | gitlab-ce-6cae2159b8ce1e84fad48f3dbd5368995cbd87b1.tar.gz | |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/import')
| -rw-r--r-- | app/controllers/import/github_controller.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/controllers/import/github_controller.rb b/app/controllers/import/github_controller.rb index 9a8f6a74653..76772a72865 100644 --- a/app/controllers/import/github_controller.rb +++ b/app/controllers/import/github_controller.rb @@ -79,13 +79,7 @@ class Import::GithubController < Import::BaseController def realtime_changes Gitlab::PollingInterval.set_header(response, interval: 3_000) - render json: already_added_projects.map { |project| - { - id: project.id, - import_status: project.import_status, - stats: ::Gitlab::GithubImport::ObjectCounter.summary(project) - } - } + render json: Import::GithubRealtimeRepoSerializer.new.represent(already_added_projects) end def cancel |
