blob: c3d6af952b445362447fe497967e22f5aafaa22b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# 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
|