Page MenuHomePhabricator

Ability to close poll
ClosedPublic

Authored by lpriestley on Apr 23 2014, 7:33 PM.
Tags
None
Referenced Files
F14098928: D8846.diff
Tue, Nov 26, 10:24 AM
F14097083: D8846.id.diff
Tue, Nov 26, 6:22 AM
F14096868: D8846.diff
Tue, Nov 26, 6:01 AM
Unknown Object (File)
Oct 25 2024, 4:49 PM
Unknown Object (File)
Oct 25 2024, 9:26 AM
Unknown Object (File)
Oct 18 2024, 11:18 AM
Unknown Object (File)
Oct 18 2024, 7:31 AM
Unknown Object (File)
Oct 7 2024, 5:08 AM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Maniphest Tasks
Restricted Maniphest Task
Commits
Restricted Diffusion Commit
rP9a827096a74a: Ability to close poll
Summary

Fixes T3566 List of poll actions should include ability to close an open poll or reopen a closed poll.

Test Plan

Poll author should be able to close/reopen poll. Non-author should get policy screen when attempting to close/reopen poll.

Diff Detail

Repository
rP Phabricator
Branch
closepoll
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 49
Build 49: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

lpriestley retitled this revision from to Ability to close poll.
lpriestley updated this object.
lpriestley edited the test plan for this revision. (Show Details)
lpriestley added a reviewer: epriestley.
lpriestley added a task: Restricted Maniphest Task.
epriestley edited edge metadata.

Handful of minor inlines.

src/applications/slowvote/controller/PhabricatorSlowvoteCloseController.php
17

You can remove this check -- $this->id will always be set. This check is only important for controllers which can both create and edit objects, but this one only edits them.

60–62

You can just call $poll->getIsClosed() here and remove the $this->isClosed property.

66

The default text for cancel buttons is "Cancel", so just remove this variable.

78

This should send the user back to $close_uri, not "/".

You can check this behavior with:

  • control-click + open-in-new-window (to get a standalone dialog)
  • hit cancel

(With the Javascript dialog, "cancel" always just closes the dialog.)

This revision now requires changes to proceed.Apr 23 2014, 8:22 PM
lpriestley edited edge metadata.

Addressing feedback. Cleaning up PhabricatorSlowvoteCloseController.php

epriestley edited edge metadata.

awwyiss

src/applications/slowvote/controller/PhabricatorSlowvoteCloseController.php
29

(Looks unused.)

This revision is now accepted and ready to land.Apr 24 2014, 7:00 PM
epriestley updated this revision to Diff 21013.

Closed by commit rP9a827096a74a (authored by @lkassianik, committed by @epriestley).