Class: NewIssueWorker
- Inherits:
-
Object
- Object
- NewIssueWorker
- Includes:
- ApplicationWorker, NewIssuable
- Defined in:
- app/workers/new_issue_worker.rb
Overview
rubocop:disable Scalability/IdempotentWorker
Constant Summary
Constants included from ApplicationWorker
ApplicationWorker::LOGGING_EXTRA_KEY
Constants included from WorkerAttributes
WorkerAttributes::NAMESPACE_WEIGHTS, WorkerAttributes::VALID_RESOURCE_BOUNDARIES, WorkerAttributes::VALID_URGENCIES
Instance Attribute Summary
Attributes included from NewIssuable
Instance Method Summary collapse
Methods included from NewIssuable
#log_error, #objects_found?, #set_issuable, #set_user
Methods included from Gitlab::SidekiqVersioning::Worker
Methods included from WorkerContext
Instance Method Details
#issuable_class ⇒ Object
20 21 22 |
# File 'app/workers/new_issue_worker.rb', line 20 def issuable_class Issue end |
#perform(issue_id, user_id) ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/workers/new_issue_worker.rb', line 12 def perform(issue_id, user_id) return unless objects_found?(issue_id, user_id) ::EventCreateService.new.open_issue(issuable, user) ::NotificationService.new.new_issue(issuable, user) issuable.create_cross_references!(user) end |