outdated_line_change API endpoint returns 500 error (not showing code changes for outdated comments)
Summary
This doesn't happen for every discussion. I found a comment on an outdated diff where I can't view the changes. The
Steps to reproduce
- Go to this comment !75047 (comment 743792442)
- Click on compare changes link.
Example Project
What is the current bug behavior?
The UI is stuck in loading state, the network pannel shows 500 error when requesting https://gitlab.com/gitlab-org/gitlab/notes/745358451/outdated_line_change
What is the expected correct behavior?
The diff is shown.
Relevant logs and/or screenshots
This happened roughly 3.6K times last week.
It also seems like the bug might have been introduced to production around 2021-11-24 12:00PM
Internal link to explore gitlab.com
logs https://log.gprd.gitlab.net/goto/63f7c1faa83f2682045293b13c1c63d4
Output of checks
This bug happens on GitLab.com
Possible fixes
Edited by Tomas Vik