d31b733fee
Prior to 12.1, rebase status was looked up directly from Gitaly. In https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14417 , a DB column was added to track the status instead. However, we couldn't stop looking at the gitaly status immediately, since some rebases may been running across the upgrade. Now that we're in 12.3, it is safe to remove the direct-to-gitaly lookup. This also happens to fix a 500 error that is seen when viewing an MR for a fork where the source project has been removed. We still look at the Gitaly status in the service, just in case Gitaly and Sidekiq get out of sync - I assume this is possible, and it's a relatively cheap check. Since we atomically check and set `merge_requests.rebase_jid`, we should never enqueue two `RebaseWorker` jobs in parallel. |
||
---|---|---|
.. | ||
conflicts | ||
add_todo_when_build_fails_service_spec.rb | ||
assign_issues_service_spec.rb | ||
build_service_spec.rb | ||
close_service_spec.rb | ||
create_from_issue_service_spec.rb | ||
create_pipeline_service_spec.rb | ||
create_service_spec.rb | ||
delete_non_latest_diffs_service_spec.rb | ||
ff_merge_service_spec.rb | ||
get_urls_service_spec.rb | ||
merge_service_spec.rb | ||
merge_to_ref_service_spec.rb | ||
mergeability_check_service_spec.rb | ||
migrate_external_diffs_service_spec.rb | ||
post_merge_service_spec.rb | ||
push_options_handler_service_spec.rb | ||
rebase_service_spec.rb | ||
refresh_service_spec.rb | ||
reload_diffs_service_spec.rb | ||
reopen_service_spec.rb | ||
resolved_discussion_notification_service_spec.rb | ||
squash_service_spec.rb | ||
update_service_spec.rb |