2017-08-01 08:38:45 -04:00
|
|
|
class NewIssueWorker
|
2017-11-28 11:08:30 -05:00
|
|
|
include ApplicationWorker
|
2017-08-01 08:38:45 -04:00
|
|
|
include NewIssuable
|
|
|
|
|
|
|
|
def perform(issue_id, user_id)
|
2017-08-08 03:41:27 -04:00
|
|
|
return unless objects_found?(issue_id, user_id)
|
2017-08-01 08:38:45 -04:00
|
|
|
|
|
|
|
EventCreateService.new.open_issue(issuable, user)
|
|
|
|
NotificationService.new.new_issue(issuable, user)
|
|
|
|
issuable.create_cross_references!(user)
|
|
|
|
end
|
|
|
|
|
|
|
|
def issuable_class
|
|
|
|
Issue
|
|
|
|
end
|
|
|
|
end
|