Update Slowvote poll status to use sensible string constants
commit809ae81752596189a1b7fe3a5411bf979e3a1897
authorepriestley <git@epriestley.com>
Thu, 26 May 2022 19:09:04 +0000 (26 12:09 -0700)
committerepriestley <git@epriestley.com>
Fri, 27 May 2022 17:15:01 +0000 (27 10:15 -0700)
treed01536c3b7827361c91758163928f4086d7d1fa7
parentc1887f0c1d55524e6af49e9fa245b71e2514ae6a
Update Slowvote poll status to use sensible string constants

Summary: Ref T13682. This prepares for modernizing Slowvote and exposing a more usable API.

Test Plan: Ran migrations, opened and closed polls.

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T13682

Differential Revision: https://secure.phabricator.com/D21848
12 files changed:
resources/sql/autopatches/20220525.slowvote.08.status-type.sql [new file with mode: 0644]
resources/sql/autopatches/20220525.slowvote.09.status-value.sql [new file with mode: 0644]
resources/sql/autopatches/20220525.slowvote.10.status-xactions.sql [new file with mode: 0644]
src/__phutil_library_map__.php
src/applications/slowvote/constants/SlowvotePollStatus.php
src/applications/slowvote/controller/PhabricatorSlowvoteCloseController.php
src/applications/slowvote/query/PhabricatorSlowvoteQuery.php
src/applications/slowvote/query/PhabricatorSlowvoteSearchEngine.php
src/applications/slowvote/storage/PhabricatorSlowvotePoll.php
src/applications/slowvote/storage/PhabricatorSlowvoteTransaction.php
src/applications/slowvote/xaction/PhabricatorSlowvoteCloseTransaction.php [deleted file]
src/applications/slowvote/xaction/PhabricatorSlowvoteStatusTransaction.php [new file with mode: 0644]