Use files count from commit stats rpc for commit rapid diffs
What does this MR do and why?
This change uses the CommitStats RPC to count the number of changed files on the rapid diffs commit page.
Previously, we had to load all the diffs to display the file count in the "Changes" tab. This will make the rapid diffs load faster, especially for commits that change many files.
References
Closes Add diff count to CommitStats RPC (#500791)
Screenshots or screen recordings
How to set up and validate locally
- Enable the
rapid_diffs_on_commit_showFF - Navigate to a commit with some diffs, for instance
http://gdk.test:3000/gitlab-org/gitlab-test/-/commit/281d3a76f31c812dbf48abce82ccf6860adedd81?rapid_diffs=true - See that the number in the changes tab is correct.
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 Gavin Hinfey
