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

  1. Visit a compare URL (e.g. http://gdk.test:3000/flightjs/Flight/-/compare/fix-event-currentTarget...master)
  2. Append the URL query param ?format=diff or ?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

Merge request reports

Loading