gitlab-org--gitlab-foss/app/services/merge_requests
Sean McGivern 3f71c43e88 Allow setting content for resolutions
When reading conflicts:

1. Add a `type` field. `text` works as before, and has `sections`;
   `text-editor` is a file with ambiguous conflict markers that can only
   be resolved in an editor.
2. Add a `content_path` field pointing to a JSON representation of the
   file's content for a single file.
3. Hitting `content_path` returns a similar datastructure to the `file`,
   but without the `content_path` and `sections` fields, and with a
   `content` field containing the full contents of the file (with
   conflict markers).

When writing conflicts:

1. Instead of `sections` being at the top level, they are now in a
   `files` array. This matches the read format better.
2. The `files` array contains file hashes, each of which must contain:
   a. `new_path`
   b. `old_path`
   c. EITHER `sections` (which works as before) or `content` (with the
      full content of the resolved file).
2016-10-13 14:16:34 -05:00
..
add_todo_when_build_fails_service.rb Move MWBS trigger from build to pipeline event 2016-10-06 10:46:31 +02:00
assign_issues_service.rb fixup! Added link to bulk assign issues to MR author. (Issue #18876) 2016-10-07 17:16:42 +01:00
base_service.rb Remove support for branch-less builds in MWBS 2016-10-06 12:31:39 +02:00
build_service.rb Allow empty merge requests 2016-10-11 10:50:49 +02:00
close_service.rb Enforce permissions in {Issues,MergeRequests}::{Close,Reopen}Service 2016-08-13 00:06:11 +02:00
create_service.rb Use the IssuableBaseService lifecycle hooks to cache MergeRequestsClosingIssues 2016-09-21 01:22:20 +05:30
get_urls_service.rb Project tools visibility level 2016-09-01 11:47:59 -03:00
merge_request_diff_cache_service.rb switch from diff_file_collection to diffs 2016-08-03 07:00:20 +02:00
merge_service.rb
merge_when_build_succeeds_service.rb Move MWBS trigger from build to pipeline event 2016-10-06 10:46:31 +02:00
post_merge_service.rb Close todos when accepting a MR via the API. 2016-09-29 14:51:12 -04:00
refresh_service.rb Add a spec for merge request metric caching while refreshing a merge request from a forked project. 2016-09-21 02:15:02 +05:30
reopen_service.rb Enforce permissions in {Issues,MergeRequests}::{Close,Reopen}Service 2016-08-13 00:06:11 +02:00
resolve_service.rb Allow setting content for resolutions 2016-10-13 14:16:34 -05:00
resolved_discussion_notification_service.rb Address review feedback 2016-08-16 11:04:26 -05:00
update_service.rb Maintain "force_remove_source_branch" options on Merge Request unless specified 2016-10-13 10:58:28 +01:00