@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.

Allow mailing lists to be permanently deleted

Summary: Allow `PhabricatorMetaMTAMailingList` to be permanently deleted with `./bin/remove destroy`.

Test Plan:
```
./bin/remove destroy PHID-MLST-nseux3r55escj573shsf
IMPORTANT: OBJECTS WILL BE PERMANENTLY DESTROYED!

There is no way to undo this operation or ever retrieve this data.

These 1 object(s) will be completely destroyed forever:

- PHID-MLST-nseux3r55escj573shsf (PhabricatorMetaMTAMailingList)

Are you absolutely certain you want to destroy these 1 object(s)? [y/N] y

Destroying objects...
Destroying PhabricatorMetaMTAMailingList PHID-MLST-nseux3r55escj573shsf...
Permanently destroyed 1 object(s).
```

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

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

+15 -1
+15 -1
src/applications/mailinglists/storage/PhabricatorMetaMTAMailingList.php
··· 1 1 <?php 2 2 3 3 final class PhabricatorMetaMTAMailingList extends PhabricatorMetaMTADAO 4 - implements PhabricatorPolicyInterface { 4 + implements 5 + PhabricatorPolicyInterface, 6 + PhabricatorDestructableInterface { 5 7 6 8 protected $name; 7 9 protected $email; ··· 38 40 39 41 public function describeAutomaticCapability($capability) { 40 42 return null; 43 + } 44 + 45 + 46 + /* -( PhabricatorDestructableInterface )----------------------------------- */ 47 + 48 + 49 + public function destroyObjectPermanently( 50 + PhabricatorDestructionEngine $engine) { 51 + 52 + $this->openTransaction(); 53 + $this->delete(); 54 + $this->saveTransaction(); 41 55 } 42 56 43 57 }