From 48eb82f229be44917e9d99a3cb0848e3841565bf Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 15 Feb 2018 08:28:19 -0800 Subject: [PATCH] Freeze "phriction.history" in favor of "phriction.content.search" Summary: Depends on D19097. Ref T13077. Freeze the older method now that the newer one is available. Test Plan: Viewed the older method's page and saw it frozen; called it to make sure I didn't break it by accident. Maniphest Tasks: T13077 Differential Revision: https://secure.phabricator.com/D19098 --- .../conduit/PhrictionHistoryConduitAPIMethod.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/applications/phriction/conduit/PhrictionHistoryConduitAPIMethod.php b/src/applications/phriction/conduit/PhrictionHistoryConduitAPIMethod.php index 454af2934a..f030420594 100644 --- a/src/applications/phriction/conduit/PhrictionHistoryConduitAPIMethod.php +++ b/src/applications/phriction/conduit/PhrictionHistoryConduitAPIMethod.php @@ -10,6 +10,16 @@ final class PhrictionHistoryConduitAPIMethod extends PhrictionConduitAPIMethod { return pht('Retrieve history about a Phriction document.'); } + public function getMethodStatus() { + return self::METHOD_STATUS_FROZEN; + } + + public function getMethodStatusDescription() { + return pht( + 'This method is frozen and will eventually be deprecated. New code '. + 'should use "phriction.content.search" instead.'); + } + protected function defineParamTypes() { return array( 'slug' => 'required string',