Add debug mode to Rapid Diffs
What does this MR do and why?
Add debug mode to Rapid Diffs:
- Add
rapid_diffs_debugfeature flag - Add
disable_syntax_highlightrequest param which would disable syntax highlighting - Add
disable_streamingrequest param which would send all diffs at once without streaming - Put
rapid_diffs_disabledrequest param behind arapid_diffs_debugfeature flag
How to set up and validate locally
- Enable
rapid_diffs,rapid_diffs_debugandrapid_diffs_on_mr_creationfeature flags - Go to merge request list
- Select 'Create merge request'
- Select branches, proceed onto next page
- Select 'Changes' tab
- Add
&disable_syntax_highlight=trueto the URL, follow it - Observe diffs without syntax highlighting
- Add
&disable_streaming=trueto the URL, follow it - Observe diffs no longer streaming (streaming request should be possible to inspect with performance bar now)
Edited by Stanislav Lashmanov