gitlab-org--gitlab-foss/spec/services/merge_requests
Jan Provaznik d973872072 Save and expose only generic merge error
When an error occurs during merge, the error message is exposed to user
and it is also saved in DB. This error message may be user unfriendly
(as in !41820) and it could also expose a detailed backend information.

Instead of displaying the specific error message, only sanitized generic
message is displayed. This is potentially controversial change because
disadvantage is that user doesn't get specific reason of failure.

Additional changes:
* repository.merge including exceptions is is extracted into a
separate method to make things clearer
* update! is used instead of update so we don't silently ignore
an error

Related to !41857
2018-05-02 09:22:20 +02:00
..
conflicts Fix 500 error when MR from fork has conflicts but worker has not run 2018-04-06 12:16:51 +01:00
add_todo_when_build_fails_service_spec.rb
assign_issues_service_spec.rb
build_service_spec.rb Fetch commit signatures from Gitaly in batches 2018-03-01 18:31:31 +01:00
close_service_spec.rb
create_from_issue_service_spec.rb
create_service_spec.rb Prevent new merge requests for archived projects 2018-04-11 10:51:14 +02:00
ff_merge_service_spec.rb
get_urls_service_spec.rb
merge_request_diff_cache_service_spec.rb Only cache MR diffs for one week 2018-03-15 11:49:53 +00:00
merge_service_spec.rb Save and expose only generic merge error 2018-05-02 09:22:20 +02:00
merge_when_pipeline_succeeds_service_spec.rb
post_merge_service_spec.rb
rebase_service_spec.rb
refresh_service_spec.rb Send notification emails when push to a merge request 2018-03-26 13:24:52 +01:00
reopen_service_spec.rb
resolved_discussion_notification_service_spec.rb
update_service_spec.rb Allow a user to select `allow maintainer to push` 2018-03-07 15:12:31 +01:00