How do you delete Phabricator project or task

て烟熏妆下的殇ゞ 提交于 2019-12-21 03:35:18

问题


I use Phabricator for code review, but I can't delete a project once it was created. The only thing I can do is change the project status from active to archived. The other problem is Task, same to project, I can't delete a task once it was created.

Sometimes, people try to test Phabricator, maybe he or she creates some mock projects, it makes sense to delete them after testing.


回答1:


It is possible, but only by using the command line administration tools.

Remove a task? ./phabricator/bin/remove destroy TASK-ID (ie: T1, T23)

Remove a project? ./phabricator/bin/remove destroy PHID-PROJ-6i6ofxwwz4xybdvg7oa5

Here is how to find the PHID: How do you find the PHID of a Phabricator object?




回答2:


I've asked the Phabricator developer on IRC, user can't delete a project or task, this is designed on purpose, the only way to do it is archive project or close task. Refer to his reply as below:

We do not plan to add that feature, the feature would create a lot of problems. For example, some user could delete your stuff and you'd have no way to tell who did it. If a user closes or archives your stuff, it says "alincoln closed this task." Another problem is that a project may have thousands or millions of objects attached to it. If you delete the project, either all of those objects become attached to an empty/invalid project, or we need to run some sort of background cleanup process. And there's no way to undo deletion, so users who make mistakes can't recover from it.



来源:https://stackoverflow.com/questions/16730390/how-do-you-delete-phabricator-project-or-task

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!