Discussions in MR deleted after rebase -i and force push
Summary
We often create MR and then rebase/squash commits inside the branch following code reviews. Sadly it seems that after rebase -i and push -f **all ** the discussions just disappeared. I still have access to them if I use the links provided in the email notifications which point to commits that do not exist anymore.
Steps to reproduce
- Create a branch and some commits, push it
- Create a MR from this branch
- Comment some files in different commits
- Rebase -i your branch locally. Squash commits, etc.
- push -f your branch
- Discussions disappeared !
What is the current bug behavior?
Discussions/comments linked to a commit disappear after a rebase as the "same but new" commits are changing their SHA
What is the expected correct behavior?
Comments should be handled smartly, and only hidden if changes happened inside the file (I have no clues about the technical complexity involved here, but we have been using Github for years and they handle this perfectly)

