Comments disappear when showing whitespace changes
While going through the commits of a merge request I added some comments to a commit. I used the 'Show whitespace changes' button to hide whitespace changes. I added some comments and committed the comments. I started doing some other work and later returned to the commit, only to see my comments missing. But when I toggled the whitespace button, my comments re-appeared. Another toggle and they were gone again. Also the comments did not appear on in the discussion section of the merge request.
I could reproduce it by adding a comment 'close by' another comment that also disappeared, but couldn't when adding a comment 'further away'. But I have no clear idea what the specific difference would be for the two cases.