2019-10-14 11:06:07 -04:00
|
|
|
# frozen_string_literal: true
|
2019-02-20 10:35:57 -05:00
|
|
|
|
2020-02-19 13:09:10 -05:00
|
|
|
class MigrateExternalDiffsWorker # rubocop:disable Scalability/IdempotentWorker
|
2019-02-20 10:35:57 -05:00
|
|
|
include ApplicationWorker
|
|
|
|
|
2021-04-30 14:10:09 -04:00
|
|
|
sidekiq_options retry: 3
|
|
|
|
|
2020-12-02 13:09:35 -05:00
|
|
|
feature_category :code_review
|
2019-10-18 07:11:44 -04:00
|
|
|
|
2019-02-20 10:35:57 -05:00
|
|
|
def perform(merge_request_diff_id)
|
|
|
|
diff = MergeRequestDiff.find_by_id(merge_request_diff_id)
|
|
|
|
return unless diff
|
|
|
|
|
|
|
|
MergeRequests::MigrateExternalDiffsService.new(diff).execute
|
|
|
|
end
|
|
|
|
end
|