Remove the rapid_diffs_debug feature flag
What does this MR do and why?
This MR removes the rapid_diffs_debug feature flag, moves the DiffBlobs streaming path in Rapid Diffs behind its own rapid_diffs_diff_blobs flag, and removes the classic commit page.
rapid_diffs_debug was an ops flag for inspecting performance. It gated two unrelated switches: streaming diffs through the Gitaly DiffBlobs RPC with ?diff_blobs=true, and forcing the classic commit page with ?rapid_diffs_disabled=true. The DiffBlobs path is now a candidate for rollout, which a debug flag plus a query parameter can't support. A dedicated gitlab_com_derisk flag lets us enable it per user without the parameter.
Since rapid_diffs_on_commit_show was removed, the debug flag was the only way to reach the classic commit page, so the page goes with it: its template, page bundle, and the diff_files and diff_for_path commit endpoints. The shared legacy diffs partial loses only its commit-only branches (async batch loading, pagination, the commit whitespace link). Wiki history diffs and merge request creation still render it unchanged.
The Rapid Diffs commit page now renders from the regular show template and page bundle instead of its own rapid_diffs entry point.
The DiffBlobs path doesn't yet match the default path for context commit diffs and notebook diffs, so those specs pin the flag off. Closing that gap is part of the rollout.
References
How to set up and validate locally
- In a Rails console, enable the new flag:
Feature.enable(:rapid_diffs_diff_blobs) - Open a commit or merge request with Rapid Diffs. The diffs stream in DiffBlobs batches without
?diff_blobs=true.
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.