1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-05 04:11:01 +01:00
phorge-phorge/src/infrastructure
epriestley bc4f86d279 When a new, deleted, draft inline is revived with "Undo", undelete it
Summary:
See PHI1876. Normally, deleted inlines are undeleted with an "undelete" operation, which clears the "isDeleted" flag.

However, when an inline is deleted implicitly by using "Cancel" without first saving it, the flag currently isn't cleared properly. This can lead to cases where inlines seem to vanish (they are shown to the user in the UI, but treated as deleted on submission).

Test Plan:
There are two affected sequences here:

  - Create a new inline, type text, cancel, undo.
  - Create a new inline, type text, cancel, undo, save.

The former sequence triggers an "edit" operation. The subsequent "Save" in the second sequence triggers a "save" operation.

It's normally impossible in the UI to execute a "save" without executing an "edit" first, but "save" clearly should undelete the comment if you get there somehow, so this change clears the deleted flag in both cases for completeness.

  - Executed both sequences, saw comment persist in preview, on reload, and after submission.

Differential Revision: https://secure.phabricator.com/D21483
2020-10-19 12:34:03 -07:00
..
cache Use "@" to silence "GC list" warnings from "apc_store()" and "apcu_store()" 2020-04-28 04:13:37 -07:00
cluster Fix additional "xprintf()"-class static parameter lint errors 2020-09-08 11:45:48 -07:00
contentsource Redesign Config Application 2016-08-29 15:49:49 -07:00
customfield Fix additional "xprintf()"-class static parameter lint errors 2020-09-08 11:45:48 -07:00
daemon When an in-process worker subtask fails permanently, don't fatal the whole process 2020-09-15 17:36:41 -07:00
diff When a new, deleted, draft inline is revived with "Undo", undelete it 2020-10-19 12:34:03 -07:00
edges Fix an issue where loading a mangled project graph could fail too abruptly 2020-02-03 08:54:04 -08:00
editor Restore editor behavior to Diffusion and support "\" shortcut 2020-04-19 09:41:37 -07:00
env Make it easier to parse "X-Forwarded-For" with one or more load balancers 2019-09-05 04:30:13 -07:00
events Remove "PhabricatorEventType::TYPE_DIFFUSION_LOOKUPUSER" event 2019-11-19 09:38:03 -08:00
export Export "date" and "remarkup" custom fields to Excel + "zip" extension check 2019-07-18 09:59:20 -07:00
graph Set an explicit height when drawing the dependent revision graph 2020-10-16 14:10:36 -07:00
internationalization Render proper "Show Context" links in DocumentEngine diffs, not just bullets 2020-05-12 16:09:22 -07:00
javelin When printing timestamps on paper: use an absolute, context-free date format 2020-09-04 16:36:34 -07:00
lint/linter Linter fixes 2015-12-03 07:44:23 +11:00
lipsum Continue moving classes with no callers in libphutil or Arcanist to Phabricator 2020-02-12 13:14:04 -08:00
log Proxy the "git upload-pack" wire protocol 2019-04-18 04:57:51 -07:00
management Add additional flags to "bin/repository rebuild-identities" to improve flexibility 2019-11-19 09:39:48 -08:00
markup Fix an issue where the "%%%" parser could match too many lines in unterminated blocks 2020-05-03 09:25:41 -07:00
parser Continue moving classes with no callers in libphutil or Arcanist to Phabricator 2020-02-12 13:14:04 -08:00
query Modularize Ferret fulltext functions 2020-04-16 13:41:13 -07:00
ssh Generate a random unique "Request ID" for SSH requests so processes can coordinate better 2018-03-22 13:44:30 -07:00
status Give Drydock Leases more modern status treatment 2018-02-13 13:15:57 -08:00
storage Require rows passed to "loadAllFromArray()" have unique keys 2020-08-12 09:05:14 -07:00
syntax Pass the new default syntax highlighting map to the remarkup engine 2016-05-05 02:51:19 -07:00
testing When running unit tests, ignore any custom task fields 2017-04-02 09:36:17 -07:00
time Render timezone names more readably, with spaces rather than underscores ("America/Los Angeles", not "America/Los_Angeles"). 2019-05-30 15:03:11 -07:00
util When acquiring a GlobalLock, put good connections that just got unlucky back in the pool 2020-06-25 18:06:09 -07:00
PhabricatorEditor.php Mark some strings for translation 2015-06-09 23:06:52 +10:00