Cleanup: remove synced_work_item param from WorkItem services
As part of the initial Epic -> WorkItem sync, we used the correlating WorkItems
service for creating and updating epics.
To skip a few checks and note creations, we introduced the synced_epic
param. However, since we moved towards using the ActiveRecord directly instead of the services, we can get rid of this parameter.
Example usages:
- https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/services/ee/work_items/create_service.rb#L59
- https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/services/ee/work_items/update_service.rb#L56
NOTE: We can only remove the checks from the Update
and Create
service. For the other services we still use this param
Edited by Nicolas Dular