gitlab-org--gitlab-foss/app/services/merge_requests
Nick Thomas d31b733fee Only read rebase status from the model
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.
2019-08-15 18:54:08 +00:00
..
conflicts Enable more frozen string in app/services/**/*.rb 2018-07-17 15:19:40 -07:00
add_todo_when_build_fails_service.rb Fix merge requst relationships with pipeline in MWPSService 2019-04-05 09:26:56 +07:00
assign_issues_service.rb Enable more frozen string in app/services/**/*.rb 2018-07-17 15:19:40 -07:00
base_service.rb Split AutoMergeService interfaces into two cancel and abort 2019-07-05 13:19:30 +07:00
build_service.rb Filter params in MR build service 2019-07-17 13:56:12 +02:00
close_service.rb Split AutoMergeService interfaces into two cancel and abort 2019-07-05 13:19:30 +07:00
create_from_issue_service.rb Fix issues when creating system notes 2019-06-29 00:22:09 +08:00
create_pipeline_service.rb Introduce service for merge request pipeline creation 2019-06-06 10:35:43 +07:00
create_service.rb Create detached merge request pipelines 2019-03-29 13:58:45 +07:00
delete_non_latest_diffs_service.rb Add a thin encapsulation around .pluck(:id) 2019-03-28 16:18:23 +00:00
ff_merge_service.rb Enable more frozen string in app/services/**/*.rb 2018-07-17 15:19:40 -07:00
get_urls_service.rb Revert "Merge branch 'blackst0ne-update-push-new-merge-request-url' into 'master'" 2018-11-07 13:32:20 +00:00
merge_base_service.rb [CE port] Bypass push rules for merge to ref service 2019-07-09 14:36:29 -03:00
merge_service.rb Add a rubocop for Rails.logger 2019-07-10 19:26:47 +00:00
merge_to_ref_service.rb [CE port] Bypass push rules for merge to ref service 2019-07-09 14:36:29 -03:00
mergeability_check_service.rb Add exclusive lease to mergeability check process 2019-07-31 19:58:43 -03:00
migrate_external_diffs_service.rb Allow external diffs to be used conditionally 2019-03-27 16:51:33 +00:00
post_merge_service.rb Fix environment automatic on_stop trigger 2019-04-30 21:15:39 +07:00
push_options_handler_service.rb Support title and desc on merge w/ push option 2019-07-24 11:04:49 +02:00
rebase_service.rb Only read rebase status from the model 2019-08-15 18:54:08 +00:00
refresh_service.rb Split AutoMergeService interfaces into two cancel and abort 2019-07-05 13:19:30 +07:00
reload_diffs_service.rb Comment on any expanded diff line on MRs 2018-11-09 16:56:48 -02:00
reopen_service.rb Disallow reopening of locked merge requests 2019-03-08 08:34:20 +00:00
resolved_discussion_notification_service.rb Enable more frozen string in app/services/**/*.rb 2018-07-17 15:19:40 -07:00
squash_service.rb Externalize strings detected by rubocop-i18n 2019-04-15 12:25:48 +00:00
update_service.rb Split AutoMergeService interfaces into two cancel and abort 2019-07-05 13:19:30 +07:00
working_copy_base_service.rb Enable more frozen string in app/services/**/*.rb 2018-07-17 15:19:40 -07:00