From 2ec39afcd12b34e63439304f02af6feaabe87ccc Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 31 Jul 2019 11:24:40 -0700 Subject: [PATCH] Deprecate ancient "slowvote.info" API method Summary: Depends on D20686. Fixes T13350. Now that "slowvote.poll.search" exists, deprecate this old method. Test Plan: Reviewed method description in Condiut API console in the web UI. Maniphest Tasks: T13350 Differential Revision: https://secure.phabricator.com/D20687 --- .../slowvote/conduit/SlowvoteInfoConduitAPIMethod.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/applications/slowvote/conduit/SlowvoteInfoConduitAPIMethod.php b/src/applications/slowvote/conduit/SlowvoteInfoConduitAPIMethod.php index 4041b1f70c..1b4cde9191 100644 --- a/src/applications/slowvote/conduit/SlowvoteInfoConduitAPIMethod.php +++ b/src/applications/slowvote/conduit/SlowvoteInfoConduitAPIMethod.php @@ -6,6 +6,14 @@ final class SlowvoteInfoConduitAPIMethod extends SlowvoteConduitAPIMethod { return 'slowvote.info'; } + public function getMethodStatus() { + return self::METHOD_STATUS_DEPRECATED; + } + + public function getMethodStatusDescription() { + return pht('Replaced by "slowvote.poll.search".'); + } + public function getMethodDescription() { return pht('Retrieve an array of information about a poll.'); } -- 2.51.2