Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-03-14 17:17:35 +0300
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-03-16 16:56:11 +0300
commit5248e37f27fe7afaec40b61041e9fa9fe70b2952 (patch)
treefe0edd37357f2a110bac4bf0fd6adc2255cbb998 /app/workers/project_export_worker.rb
parenta63d74709be2af852e3c98505a18664e6bca9754 (diff)
Adds the option to override project description on export via API
and fixes the project description not being imported
Diffstat (limited to 'app/workers/project_export_worker.rb')
-rw-r--r--app/workers/project_export_worker.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/workers/project_export_worker.rb b/app/workers/project_export_worker.rb
index c100852374a..0b502143e5d 100644
--- a/app/workers/project_export_worker.rb
+++ b/app/workers/project_export_worker.rb
@@ -4,10 +4,11 @@ class ProjectExportWorker
sidekiq_options retry: 3
- def perform(current_user_id, project_id)
+ def perform(current_user_id, project_id, params = {})
+ params = params.with_indifferent_access
current_user = User.find(current_user_id)
project = Project.find(project_id)
- ::Projects::ImportExport::ExportService.new(project, current_user).execute
+ ::Projects::ImportExport::ExportService.new(project, current_user, params).execute
end
end