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
- Create an MR with many diffs.
- Open your browser's page inspect tool and open a Network tab to observe the streaming behaviour
- Make
diffs_stream
request by visiting something likehttp://127.0.0.1:3000/h5bp/html5-boilerplate/-/merge_requests/8/diffs_stream
- Observe the request is being streamed as expected
Related to #450990 (closed)