gitlab-org--gitlab-foss/spec/services/merge_requests
Bob Van Landuyt 08dbd93bd6 Validate projects in MR build service
This validates the correct abilities for both projects. Only
`read_project` isn't enough:

For the `source_project` we validate `create_merge_request_from` this
also validates that the user has developer access to the project.

For the `target_project` we validate `create_merge_reqeust_in` this
also validates that the user has access to the project's repository.

To avoid generating diffs for unrelated projects we also validate that
the projects are in the same fork network now.
2018-12-14 10:21:09 +01:00
..
conflicts Make sure ConflictsService does not raise for conflicting submodules 2018-07-10 15:06:20 +01:00
add_todo_when_build_fails_service_spec.rb
assign_issues_service_spec.rb Replace '.team << [user, role]' with 'add_role(user)' in specs 2017-12-22 19:18:28 +11:00
build_service_spec.rb Validate projects in MR build service 2018-12-14 10:21:09 +01:00
close_service_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
create_from_issue_service_spec.rb Creates /create_merge_request quickaction 2018-11-14 15:16:19 +01:00
create_service_spec.rb Merge request pipelines 2018-12-05 15:57:52 +09:00
delete_non_latest_diffs_service_spec.rb Whitelist existing destroy_all offenses 2018-08-16 17:29:37 +02:00
ff_merge_service_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
get_urls_service_spec.rb Revert "Merge branch 'blackst0ne-update-push-new-merge-request-url' into 'master'" 2018-11-07 13:32:20 +00:00
merge_service_spec.rb Retrieve merge request closing issues from database cache 2018-08-06 11:58:22 -03:00
merge_when_pipeline_succeeds_service_spec.rb Eliminate duplicated words 2018-11-22 01:01:23 +09:00
post_merge_service_spec.rb Retrieve merge request closing issues from database cache 2018-08-06 11:58:22 -03:00
rebase_service_spec.rb Fix committer typo 2018-09-25 11:51:07 +03:00
refresh_service_spec.rb Guard with feature flag 2018-12-07 21:00:47 +08:00
reload_diffs_service_spec.rb Comment on any expanded diff line on MRs 2018-11-09 16:56:48 -02:00
reopen_service_spec.rb Retrieve merge request closing issues from database cache 2018-08-06 11:58:22 -03:00
resolved_discussion_notification_service_spec.rb
squash_service_spec.rb Remove Gitlab::Git::Repository#rugged and Gollum code 2018-10-02 16:34:28 -03:00
update_service_spec.rb Fix spec in EE which now trigger access to repository 2018-11-07 11:33:02 +08:00