You need to sign in or sign up before continuing.
Deprecate usage of MergeRequest#commits without a limit
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
We've encountered before the performance degradations due to fetching all commits for a merge request: #35542 (closed). The limit
param has been introduced for narrowing the number of commits fetched: https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/models/merge_request.rb#L423. The limit
is optional, but we need to make sure that we avoid calling this method without it. However, we need to fix all the cases that are using this method without a limit
before we can make it required
Edited by 🤖 GitLab Bot 🤖