1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-21 09:48:47 +02:00
phorge-phorge/src/applications/diffusion
epriestley f1222f956a 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
2015-07-21 11:36:46 -07:00
..
application Show when objects have a non-default policy 2015-06-22 11:46:59 -07:00
capability Simplify the implementation of PhabricatorPolicyCapability subclasses 2014-07-25 08:25:42 +10:00
conduit Reduce badness in viewing large files in the Diffusion web UI 2015-06-18 13:06:01 -07:00
config Improve UX for Diffusion mail fields 2015-05-25 07:18:48 -07:00
controller Correctly clear draft markers when deleting an inline comment 2015-07-21 11:36:46 -07:00
data Extend from Phobject 2015-06-15 18:02:27 +10:00
doorkeeper Partially modernize Doorkeeper/Asana bridge 2014-10-01 07:09:34 -07:00
edge Fix reverting commit language 2015-06-01 09:54:30 +10:00
engine phtize all the things 2015-05-22 21:16:39 +10:00
events Migrate Differential revision edges to use modern EdgeType subclasses 2015-01-01 15:07:03 +11:00
exception phtize all the things 2015-05-22 21:16:39 +10:00
herald Group and order Herald fields 2015-07-16 14:13:13 -07:00
panel Add "Mailing List" users 2015-06-03 18:42:33 -07:00
protocol Extend from Phobject 2015-06-15 18:02:27 +10:00
query Add an "--importing" flag to bin/repository reparse 2015-06-20 05:25:44 -07:00
remarkup make repo callsigns optional 2015-01-01 08:07:26 -08:00
request Extend from Phobject 2015-06-15 18:02:27 +10:00
response Allow Phabricator to serve Mercurial repositories over HTTP 2013-11-06 18:00:42 -08:00
ssh Extend from Phobject 2015-06-15 18:02:27 +10:00
symbol Extend from Phobject 2015-06-15 18:02:27 +10:00
typeahead Remove arcanist project datasource 2015-05-26 07:10:10 +10:00
view [Redesign] Move basefont to Lato, remove Source Sans Pro 2015-06-13 20:32:45 +01:00
DiffusionLintSaveRunner.php Extend from Phobject 2015-06-15 18:02:27 +10:00