Class: WorkItems::DataSync::CloneService

Inherits:
BaseService show all
Defined in:
app/services/work_items/data_sync/clone_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#service_response, #target_namespace, #work_item

Attributes inherited from BaseContainerService

#container, #current_user, #group, #params, #project

Class Method Summary collapse

Methods inherited from BaseService

#execute, #initialize

Methods included from Services::ReturnServiceResponses

#error, #success

Methods inherited from BaseContainerService

#group_container?, #initialize, #namespace_container?, #project_container?, #project_group, #root_ancestor

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?, #can_all?, #can_any?

Constructor Details

This class inherits a constructor from WorkItems::DataSync::BaseService

Class Method Details

.transaction_callback(new_work_item, work_item, current_user) ⇒ Object



7
8
9
10
# File 'app/services/work_items/data_sync/clone_service.rb', line 7

def transaction_callback(new_work_item, work_item, current_user)
  clone_system_notes(current_user, new_work_item, work_item)
  track_work_item_clone(work_item, current_user)
end