Can't leave a comment or draft comment on moved files with no changes
Summary
We recently shipped the ability to expand the content of a moved file with no changes.
However, leaving a comment or draft comment is failing.
Steps to reproduce
- Open an MR with a renamed file, with no changes
- Expand the content of that file in the Diff
- Try to leave a comment
- Try to leave a batch comment
Example Project
Proposal
On moved files that do not have any changes we should disable the comment button, with a tooltip saying:
Commenting on moved files is currently not supported
This will immediately relieve any concerns about errors or lost comments. Future feature enhancements to enable commenting are in #371752 (closed)
Edited by Annabel Dunstone Gray