summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-11-08 11:52:39 +0000
committerDouwe Maan <douwe@gitlab.com>2017-11-08 11:52:39 +0000
commit92249f1ac883c2a861235ec49526cbafca73b362 (patch)
treed2f7de8ed87dfca2a8102e4bc713ece048e6994e /app/controllers
parent3c369ba16e5c5a7d8a9f6187e08cb504c1ad91a6 (diff)
parent6e242e82237ad2cf362098f3f42f4a9dd1a4ad27 (diff)
downloadgitlab-ce-92249f1ac883c2a861235ec49526cbafca73b362.tar.gz
Merge branch 'github-importer-refactor' into 'master'
Rewrite the GitHub importer to perform work in parallel and greatly improve performance Closes #33135, #38621, and #39361 See merge request gitlab-org/gitlab-ce!14731
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/import/github_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/import/github_controller.rb b/app/controllers/import/github_controller.rb
index ab18d86dcae..b8ba7921613 100644
--- a/app/controllers/import/github_controller.rb
+++ b/app/controllers/import/github_controller.rb
@@ -43,7 +43,7 @@ class Import::GithubController < Import::BaseController
@target_namespace = find_or_create_namespace(namespace_path, current_user.namespace_path)
if can?(current_user, :create_projects, @target_namespace)
- @project = Gitlab::GithubImport::ProjectCreator.new(repo, @project_name, @target_namespace, current_user, access_params, type: provider).execute
+ @project = Gitlab::LegacyGithubImport::ProjectCreator.new(repo, @project_name, @target_namespace, current_user, access_params, type: provider).execute
else
render 'unauthorized'
end
@@ -52,7 +52,7 @@ class Import::GithubController < Import::BaseController
private
def client
- @client ||= Gitlab::GithubImport::Client.new(session[access_token_key], client_options)
+ @client ||= Gitlab::LegacyGithubImport::Client.new(session[access_token_key], client_options)
end
def verify_import_enabled