mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
21 lines
548 B
Ruby
21 lines
548 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ExportCsvWorker # rubocop:disable Scalability/IdempotentWorker
|
|
include ApplicationWorker
|
|
|
|
feature_category :issue_tracking
|
|
worker_resource_boundary :cpu
|
|
loggable_arguments 2
|
|
|
|
def perform(current_user_id, project_id, params)
|
|
@current_user = User.find(current_user_id)
|
|
@project = Project.find(project_id)
|
|
|
|
params.symbolize_keys!
|
|
params[:project_id] = project_id
|
|
params.delete(:sort)
|
|
|
|
IssuableExportCsvWorker.perform_async(:issue, @current_user.id, @project.id, params)
|
|
end
|
|
end
|