@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Support `bin/remove destroy Fnnn` for files

Summary: Straightforward (this is the one object type we do let you delete from the web UI) implemetation of `PhabricatorDestructibleInterface`.

Test Plan: Used `bin/remove destroy` to destory several files. Used `--trace` to verify they wiped file data.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

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

+13 -1
+13 -1
src/applications/files/storage/PhabricatorFile.php
··· 21 21 PhabricatorTokenReceiverInterface, 22 22 PhabricatorSubscribableInterface, 23 23 PhabricatorFlaggableInterface, 24 - PhabricatorPolicyInterface { 24 + PhabricatorPolicyInterface, 25 + PhabricatorDestructibleInterface { 25 26 26 27 const ONETIME_TEMPORARY_TOKEN_TYPE = 'file:onetime'; 27 28 const STORAGE_FORMAT_RAW = 'raw'; ··· 1044 1045 ); 1045 1046 } 1046 1047 1048 + 1049 + /* -( PhabricatorDestructibleInterface )----------------------------------- */ 1050 + 1051 + 1052 + public function destroyObjectPermanently( 1053 + PhabricatorDestructionEngine $engine) { 1054 + 1055 + $this->openTransaction(); 1056 + $this->delete(); 1057 + $this->saveTransaction(); 1058 + } 1047 1059 1048 1060 }