debian-mirror-gitlab/app/services/issues/import_csv_service.rb
2023-04-23 21:23:45 +05:30

29 lines
542 B
Ruby

# frozen_string_literal: true
module Issues
class ImportCsvService < Issuable::ImportCsv::BaseService
def execute
record_import_attempt
super
end
def email_results_to_user
Notify.import_issues_csv_email(user.id, project.id, results).deliver_later
end
private
def create_object(attributes)
super[:issue]
end
def create_object_class
Issues::CreateService
end
def record_import_attempt
Issues::CsvImport.create!(user: user, project: project)
end
end
end