Implements T8733
Details
Details
- Reviewers
epriestley lpriestley - Group Reviewers
Blessed Reviewers - Commits
- Restricted Diffusion Commit
rPa40437a5310a: Implements Spaces application in Slowvote
Verify that spaces policies can be implemented in the creation and editing of polls.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
- Does the Slowvote list view correctly show spaces?
- Does the Slowvote detail view correctly show spaces?
Specifically, the space name should be shown like this ("Dark Secrets") in those views for objects in a non-default space:
src/applications/slowvote/controller/PhabricatorSlowvoteEditController.php | ||
---|---|---|
49 | Prefer $v_space for consistency. ("v" = "value", i.e. these get passed to setNewValue() later). | |
src/applications/slowvote/storage/PhabricatorSlowvotePoll.php | ||
207 | Shorten by 2 characters. |
Comment Actions
Two really minor things. Specifically, the behavior we want is:
- Select a space (say, S123).
- Make an error filling out the form (say, forget to provide a title).
- Hit submit.
Desired behavior:
- Form comes back with an error, but your selection (S123) is preserved, so you don't need to re-select it: you only need to fix your error.
Expected behavior under this change:
- Form comes back with an error, but also loses your space selection.
The two inlines will fix this so the user's choice is preserved even if they make a mistake somewhere else on the form.
src/applications/slowvote/controller/PhabricatorSlowvoteEditController.php | ||
---|---|---|
64 | Should be $v_space. | |
255 | This should setSpacePHID($v_space). |