Skip to content

Implement MR creation page diffs streaming endpoint

Patrick Bajao requested to merge 500268-mr-creation-page-diffs-stream into master

What does this MR do and why?

Creates a streaming endpoint that can be used on the MR creation page.

This endpoint accepts the same parameters as the diffs endpoint currently being used in MR creation page. The endpoint is exposed as /diffs_stream.

This is behind rapid_diffs FF.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Enabled rapid_diffs FF.

  2. Make a request for the diffs_stream endpoint: (example) http://gdk.test:3000/root/ssr/-/merge_requests/new/diffs_stream?merge_request[source_project_id]=128&merge_request[source_branch]=files&merge_request[target_project_id]=128&merge_request[target_branch]=main

    The following params are needed:

    • merge_request[source_project_id]
    • merge_request[target_project_id]
    • merge_request[source_branch]
    • merge_request[target_branch]

    Also supports offset param.

Related to #500268 (closed)

Merge request reports

Loading