Page MenuHomePhabricator

Implement bin/remove for Slowvote
Closed, ResolvedPublic

Description

There should be a way to destroy a question, or at least restrict its visibility.

Event Timeline

SeMeKh raised the priority of this task from to Normal.
SeMeKh updated the task description. (Show Details)
SeMeKh added a project: Ponder.
SeMeKh added a subscriber: SeMeKh.

This is likely two different tasks. Implement Policies and Implement bin/remove. What is your specific use case here, closing a question should provide most of what you need.

epriestley renamed this task from Implement visibility management to Implement policies and bin/remove for Slowvote.Aug 6 2014, 7:49 PM
epriestley renamed this task from Implement policies and bin/remove for Slowvote to Implement bin/remove for Slowvote.
epriestley added a subscriber: epriestley.

Slowvote already supports policies. Use Edit > Visible To to restrict who can see a poll.

To proceed:

  • Implement PhabricatorDestructibleInterface on SlowvotePoll.
  • Invoke destruction with bin/remove destroy V123.
  • The method should destroy the poll, the options, and the votes.
  • See T5409 for a similar task.