Discussed files later removed from a branch by force push do not generate notes of any change
Summary
In a merge request, if you have a discussion on some files which subsequently get removed from the changed file list, for example, by a force push - there's no note added that file has been changed, or removed altogether from the scope of the merge request.
Steps to reproduce
- Push a branch, and create a merge request.
- Start a discussion on a file
- Remove this file from the scope of the branch, and force push given branch again - the file should no longer be touched and should not show up in the changed file list.
- See that there's no note under the discussion on the file, whereas normally if a line is changed there should be a note "XYZ has changed this line in version X of the diff" visible
What is the current bug behavior?
Nothing happens, there's no note of changes.
What is the expected correct behavior?
In these cases, a note should be added that the file is no longer in the scope of the merge request.