Add patch and diff formats for compare controller
What does this MR do and why?
This allows fetching of a diff or patch file from a compare URL by adding the format param. UI button will be added separately.
The docs are being worked on in !194453 (merged)
References
Related to #217206 (closed)
How to set up and validate locally
- Visit a compare URL (e.g. http://gdk.test:3000/flightjs/Flight/-/compare/fix-event-currentTarget...master)
- Append the URL query param
?format=diffor?format=patch
You should see a diff / patch file format of the diff
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Heinrich Lee Yu