Couldn't load context_commit_diffs
Summary
Steps to reproduce
- spin up a development server.
- go to a merge request and click on "Commits" tab, example /flightjs/Flight/-/merge_requests/3/commits
- scroll to bottom and click "Add previously merged commits", select few commits and "Save changes"
- click on the "Changes" tab
- click on the source dropdown in the compare section and select "previously merged commits"
- this should show an error as below
Example Project
any existing project
What is the current bug behavior?
What is the expected correct behavior?
Diff for context commits should load correctly
Relevant logs and/or screenshots
batch diff api call log
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Possible fixes
It's due to null pointer reference here https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/diff/file_collection/compare.rb#L19