Commit count missing on MR creation page for very large MRs
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=584639) </details> <!--IssueSummary end--> ## Description The merge request creation page currently does not show a commit count for very large merge requests (100K+ commits) due to performance issues. This is a follow-up to issue #576241, where such MRs were erroring with a 500. This was resolved with https://gitlab.com/gitlab-org/gitlab/-/merge_requests/210440, but the problem persists that the commit count will be missing. ## Goal Optimize the performance of commit count calculation and display on the MR creation page so the count can be shown again without impacting page load times. ## Proposal TBD. Maybe we could fallback on the frontend count?
issue