Class: Issues::MoveService
- Inherits:
-
Issuable::Clone::BaseService
- Object
- BaseContainerService
- IssuableBaseService
- Issuable::Clone::BaseService
- Issues::MoveService
- Extended by:
- Gitlab::Utils::Override
- Defined in:
- app/services/issues/move_service.rb
Constant Summary collapse
- BATCH_SIZE =
100
- MoveError =
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 included from Gitlab::Utils::Override
extended, extensions, included, method_added, override, prepended, queue_verification, verify!
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
Instance Method Details
#execute(issue, target_project, move_any_issue_type = false) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'app/services/issues/move_service.rb', line 11 def execute(issue, target_project, move_any_issue_type = false) @move_any_issue_type = move_any_issue_type @target_project = target_project verify_can_move_issue!(issue, target_project) super(issue, target_project) notify_participants # Updates old issue sent notifications allowing # to receive service desk emails on the new moved issue. update_service_desk_sent_notifications copy_email_participants queue_copy_designs copy_timelogs new_entity end |