Page MenuHomePhabricator

Marking comments as done in Differential isn't always saved correctly
Closed, InvalidPublic

Assigned To
None
Authored By
ivo
Jun 3 2016, 11:54 AM
Referenced Files
F1674539: pasted_file
Jun 3 2016, 12:56 PM
F1674554: pasted_file
Jun 3 2016, 12:56 PM
F1674511: Screen Shot 2016-06-03 at 5.38.25 AM.png
Jun 3 2016, 12:40 PM
F1674507: Screen Shot 2016-06-03 at 5.37.22 AM.png
Jun 3 2016, 12:40 PM
F1674515: Screen Shot 2016-06-03 at 5.38.28 AM.png
Jun 3 2016, 12:40 PM
F1674509: Screen Shot 2016-06-03 at 5.37.39 AM.png
Jun 3 2016, 12:40 PM
F1674447: pasted_file
Jun 3 2016, 11:54 AM
F1674443: pasted_file
Jun 3 2016, 11:54 AM

Description

Steps to reproduce

  1. Mark a comment as done
  2. Add a comment yourself (not sure if this is necessary)
  3. Submit form

Result

The e-mail notification now announces that an inline comment was marked as done:

pasted_file (423×1 px, 48 KB)

However, when looking at the revision itself the comment is still not done:

pasted_file (240×653 px, 21 KB)

When the author looks at the revision, it turns out the done mark is still unsubmitted:

pasted_file (196×1 px, 18 KB)

I've seen this happen on our install several times now.

Event Timeline

The "Inline Comments" section shows new inline comments. It does not show inlines marked "Done".

Given this, is the behavior still unexpected?

The author of the revision intended to mark the comment Done, but this didn't happen when he submitted the form. For me that seems to be unexpected behaviour.

Second, I understand that the section just shows new comments, but the first line of the email says:

elian marked an inline comment as done.

So I would expect the comment to actually have been marked Done.

Okay. I can't reproduce that. Here's what I did.

I viewed a revision with an un-"Done" inline comment:

Screen Shot 2016-06-03 at 5.37.22 AM.png (1×1 px, 127 KB)

I clicked the "Done" checkbox, typed some text, then hit submit:

Screen Shot 2016-06-03 at 5.37.39 AM.png (1×1 px, 141 KB)

This generated the transaction I expected (note "Marked inline as done"):

Screen Shot 2016-06-03 at 5.38.25 AM.png (117×1 px, 24 KB)

This also marked the inline as done:

Screen Shot 2016-06-03 at 5.38.28 AM.png (234×774 px, 24 KB)

Interestingly, the comment is suddenly marked as done when the revision is closed:

pasted_file (710×1 px, 112 KB)

As you can see there are two transactions marking the comment as done, but only the last one actually marks it.

Here's another example:

pasted_file (1×1 px, 138 KB)

None of those screenshots demonstrate inconsistencies on their own.

This needs reproduction instructions which I can follow to recreate the issue before we can move forward with it.

eadler added a project: Restricted Project.Jun 7 2016, 6:19 PM
eadler moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.

This report doesn't include reproduction instructions and doesn't clearly demonstrate a problem: all of the screenshots are explicable through user error.

Although it's entirely possible that there's a real bug here, we can't move forward without being able to reproduce the issue.

Feel free to file a new issue if you come up with reliable reproduction instructions.

If there is an issue here, it may also be resolved indirectly as a side effect of future infrastructure work like T11114.