Homec4science

Correctly clear draft markers when deleting an inline comment

Authored by epriestley <git@epriestley.com> on Jul 21 2015, 20:36.

Description

Correctly clear draft markers when deleting an inline comment

Summary:
Fixes T8917. Prior to T2618, deleting inlines prompted users, then really deleted the rows.

After T2618, we delete immediately and offer "Undo". However, some interactions with drafts were missed, and we were only clearing the "this revision has a draft" flag on one of the delete pathways (when you delete all the comment text, then save the comment).

Make both the "Delete" action and the "Delete All Comment Text + Save" workflows do the same thing: mark the row as deleted, and clear any relevant drafts.

Test Plan:

  • Made an inline comment on a clean revision with no "draft comments" marker in the list view.
  • Used "delete" to delete it.
  • After applying the patch, verified that no "draft commetns" marker appears in the list view.
  • Used Delete and Edit + Remove Text + Save to delete comments in Differential and Diffusion.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T8917

Differential Revision: https://secure.phabricator.com/D13665

Details

Committed
epriestley <git@epriestley.com>Jul 21 2015, 20:36
Pushed
aubortJan 31 2017, 17:16
Parents
rPHffa4cae6276e: Modularize config modules + add edges, phid modules
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHf1222f956a85: Correctly clear draft markers when deleting an inline comment (authored by epriestley <git@epriestley.com>).Jul 21 2015, 20:36