Page MenuHomePhabricator

Fix rendering of comments deleted by editing
ClosedPublic

Authored by epriestley on Mar 14 2014, 3:12 PM.
Tags
None
Referenced Files
F18851789: D8533.id20242.diff
Oct 31 2025, 4:13 AM
F18829507: D8533.id20242.diff
Oct 24 2025, 10:34 PM
F18828494: D8533.id.diff
Oct 24 2025, 4:33 PM
F18822330: D8533.diff
Oct 23 2025, 5:59 AM
F18522411: D8533.diff
Sep 6 2025, 5:15 AM
F17964456: D8533.id20242.diff
Aug 1 2025, 11:09 AM
F17947712: D8533.id.diff
Jul 31 2025, 6:07 PM
F17940853: D8533.id20256.diff
Jul 31 2025, 4:48 AM
Subscribers

Details

Summary

Fixes T4609. Steps are:

  • Make a comment.
  • Edit it.
  • Delete all the text.

We expect to see "This comment has been deleted." -- instead, things currently render goofy.

Root cause is that hasComment() means both "comment object exists" and "comment object is nonempty".

Test Plan

Screen_Shot_2014-03-14_at_8.07.39_AM.png (158×856 px, 22 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Fix rendering of comments deleted by editing.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Mar 14 2014, 5:45 PM
epriestley updated this revision to Diff 20256.

Closed by commit rP48910537b939 (authored by @epriestley).