Add diff options support for MR diffs streaming endpoint
Background
We decided to keep the initial implementation of streaming endpoint for MR diffs simple. As discussed in #450990 (comment 1901990588), we are splitting adding support for existing features that diffs_batch.json
supports.
This issue is for supporting different diff options. Currently, the streaming endpoint is not accepting any diff options.
diff_options
we currently use in existing diffs implementation can be found in DiffHelper#diff_options
: https://gitlab.com/gitlab-org/gitlab/-/blob/d2bb7c9df1c67f2834074907b5aae0022cae75d5/app/helpers/diff_helper.rb#L30-46
Proposal
Update MergeRequests::DiffsStreamController
to support diff_options
.
See if we still need to support all existing diff options in rapid diffs.