Skip to content

Add basic streaming diffs endpoint

What does this MR do and why?

Add basic streaming diffs to support rapid diffs feature. It renders diffs in HTML which frontend will load it in place. We may include some of the diffs on the initial page so it has an optional offset.

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

  1. Create an MR with many diffs.
  2. Open your browser's page inspect tool and open a Network tab to observe the streaming behaviour
  3. Make diffs_stream request by visiting something like http://127.0.0.1:3000/h5bp/html5-boilerplate/-/merge_requests/8/diffs_stream
  4. Observe the request is being streamed as expected

Related to #450990 (closed)

Merge request reports