Saving comments without a change still triggers "Edited" status

Summary

When editing and saving a comment without actually changing its content, the Edited status is still triggered.

Steps to reproduce

  1. Submit a comment (or find a comment that hasn't been edited yet): image
  2. Edit the comment (without actually changing the content). image
  3. Save the comment. image

Example Project

(No example project, since it can be reproduced in any project.)

What is the current bug behavior?

The comment appears to have been edited: image

What is the expected correct behavior?

The comment shouldn't appear to have been edited.

Relevant logs and/or screenshots

(No relevant logs, since it can easily be reproduced.)

Output of checks

This bug happens on GitLab.com.

Results of GitLab environment info

(Not relevant, since it can easily be reproduced.)

Results of GitLab application Check

(Not relevant, since it can easily be reproduced.)

Possible fixes

  1. Check if new comment content differs from old comment content and only set Edited status in that case.
  2. Disable Save comment button if current comment content equals old comment content.
Assignee Loading
Time tracking Loading