Always use the `diffs_batch` endpoint for requesting diffs (regardless of being latest version or not)
Problem
Within the work at #31290 (closed), we're switching between two endpoints for presenting the diffs data. /diffs_batch
for presenting the latest version diffs (which are persisted) and /diffs
for the other scenarios (non-latest diffs). That was a decision given we're not batching diffs coming from the repository yet (#32859 (closed)) for performance reasons.
Proposal
Change /diffs_batch
to support receiving all arguments that /diffs
can receive today, even though it won't return a batched diff if it's not the latest version of the diff, we'll fake it by returning everything possible for now, so we can safely iterate on that later (#32859 (closed)) and FE will keep using the same endpoint.
Eventually /diffs
will be removed after #32859 (closed) by ensuring it works as expected with the feature flag on.