-
- Downloads
There was a problem fetching the pipeline summary.
Fix truncated_diff_lines for legacy notes without a line
It appears that some legacy diff notes on GitLab.com have invalid line codes, which means truncated_diff_lines won't work. This is just a band-aid solution, as neither the diff nor the discussion will display correctly for these notes, but they won't cause a 500 error.
Showing
- app/models/concerns/discussion_on_diff.rb 2 additions, 0 deletionsapp/models/concerns/discussion_on_diff.rb
- changelogs/unreleased/42160-error-500-loading-merge-request-undefined-method-index-for-nil-nilclass.yml 5 additions, 0 deletions...merge-request-undefined-method-index-for-nil-nilclass.yml
- spec/models/concerns/discussion_on_diff_spec.rb 10 additions, 0 deletionsspec/models/concerns/discussion_on_diff_spec.rb
-
mentioned in issue #43226 (closed)
-
mentioned in issue #53678 (closed)
Please register or sign in to comment