Fixes outdated diff lines returning incorrect results
What does this MR do and why?
Fixes the outdated diff lines service sometimes returning incorrect results. This can be caused because the commented diff line no longer exists in the diff.
So instead of trying to find based on the line number it is changed to find the old line first and then find the next new or unchanged diff line and use that index to calculate the diff lines to show.
Screenshots or screen recordings
How to set up and validate locally
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.