diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2018-07-23 07:52:15 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-07-23 07:52:15 +0000 |
commit | c52ab9141c27e131721d8ae28b44bff9a3431cae (patch) | |
tree | 2109d84de1377060705b7605e355f6830be8a9db /app/controllers/import | |
parent | 480b5345682c6935314f1958e79c1edd1a19c2f3 (diff) | |
download | gitlab-ce-c52ab9141c27e131721d8ae28b44bff9a3431cae.tar.gz |
Fix gitlab import project load
Diffstat (limited to 'app/controllers/import')
-rw-r--r-- | app/controllers/import/gitlab_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/import/gitlab_controller.rb b/app/controllers/import/gitlab_controller.rb index fccbdbca0f6..53f70446d95 100644 --- a/app/controllers/import/gitlab_controller.rb +++ b/app/controllers/import/gitlab_controller.rb @@ -1,4 +1,7 @@ class Import::GitlabController < Import::BaseController + MAX_PROJECT_PAGES = 15 + PER_PAGE_PROJECTS = 100 + before_action :verify_gitlab_import_enabled before_action :gitlab_auth, except: :callback @@ -10,7 +13,7 @@ class Import::GitlabController < Import::BaseController end def status - @repos = client.projects + @repos = client.projects(starting_page: 1, page_limit: MAX_PROJECT_PAGES, per_page: PER_PAGE_PROJECTS) @already_added_projects = find_already_added_projects('gitlab') already_added_projects_names = @already_added_projects.pluck(:import_source) |