Class: Issues::CloneService
- Inherits:
-
Issuable::Clone::BaseService
- Object
- BaseContainerService
- IssuableBaseService
- Issuable::Clone::BaseService
- Issues::CloneService
- Defined in:
- app/services/issues/clone_service.rb
Constant Summary collapse
- CloneError =
Class.new(StandardError)
Instance Attribute Summary
Attributes inherited from Issuable::Clone::BaseService
Attributes inherited from BaseContainerService
#container, #current_user, #group, #params, #project
Instance Method Summary collapse
Methods inherited from BaseContainerService
#group_container?, #initialize, #namespace_container?, #project_container?, #project_group
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
Instance Method Details
#execute(issue, target_project, with_notes: false) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/services/issues/clone_service.rb', line 7 def execute(issue, target_project, with_notes: false) @target_project = target_project @with_notes = with_notes verify_can_clone_issue!(issue, target_project) super(issue, target_project) notify_participants queue_copy_designs new_entity end |