Render Rapid Diffs on the MR creation page
What does this MR do and why?
For #500269 (closed)
Enables the ?rapid_diffs=true
option on the MR creation page, which swaps the UI from our existing Diffs app to the Rapid Diffs app.
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.
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Enable the
rapid_diffs
feature flag:rails c
=>Feature.enable( :rapid_diffs )
- Start the process to create a new MR
- Choose the source branch, and continue to the final step
- Add
?rapid_diffs=true
to the URL (or&rapid_diffs=true
if there are already search parameters)- Submit the URL change to reload the page
- Note that the "Changes" tab below the main form is now rendering the Rapid Diffs implementation
Caveats
Note that the sidebar (file tree) does not work because there's no metadata endpoint, which isn't present because:
- It originally was not available
- Updating the back end to use it didn't work for me: #525429 (closed)
Edited by Thomas Randolph