Page MenuHomePhabricator

Allow projects to be deleted with `./bin/remove destroy`.
ClosedPublic

Authored by joshuaspence on Jun 2 2014, 11:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 5:02 AM
Unknown Object (File)
Mon, Apr 29, 3:51 PM
Unknown Object (File)
Wed, Apr 24, 10:28 PM
Unknown Object (File)
Wed, Apr 24, 7:01 AM
Unknown Object (File)
Sat, Apr 20, 11:10 AM
Unknown Object (File)
Mar 30 2024, 10:15 PM
Unknown Object (File)
Mar 3 2024, 3:47 AM
Unknown Object (File)
Mar 3 2024, 3:47 AM
Subscribers

Details

Summary

Fixes T5235. Implement PhabricatorDestructableInterface on PhabricatorProject so that projects can be deleted with ./bin/remove destroy.

Test Plan

Created (and then destroyed) a test project. Verified that the corresponding objects (project, slugs and workboard columns) were removed from the database.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to Allow projects to be deleted with `./bin/remove destroy`..
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.

Hmm... I don't think this is cleaning up all of the edges. I had also created a maniphest under the test project, which now displays as "Unknown Object" (whereas I was expecting the project to be removed from the maniphest competely).

epriestley edited edge metadata.

IIRC, Maniphest doesn't use edges to record projects right now. It should, it just predates the edge infrastructure.

This revision is now accepted and ready to land.Jun 3 2014, 12:09 AM
epriestley updated this revision to Diff 22270.

Closed by commit rPc2eff7c2163c (authored by @joshuaspence, committed by @epriestley).