From 3cdabb9588b03cb0360fdaa0d78d0675f086720a Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 24 Mar 2017 12:36:02 -0700 Subject: [PATCH] Provide a hint that submitting a Conduit call shows you how to encode particular parameters Summary: Ref T12447. Test Plan: {F4270003} Reviewers: chad Reviewed By: chad Maniphest Tasks: T12447 Differential Revision: https://secure.phabricator.com/D17557 --- .../conduit/controller/PhabricatorConduitController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/applications/conduit/controller/PhabricatorConduitController.php b/src/applications/conduit/controller/PhabricatorConduitController.php index 8588bc07f9..97e1ad0294 100644 --- a/src/applications/conduit/controller/PhabricatorConduitController.php +++ b/src/applications/conduit/controller/PhabricatorConduitController.php @@ -56,6 +56,12 @@ abstract class PhabricatorConduitController extends PhabricatorController { $panel_link), ); + if ($params === null) { + $messages[] = pht( + 'If you submit parameters, these examples will update to show '. + 'exactly how to encode the parameters you submit.'); + } + $info_view = id(new PHUIInfoView()) ->setErrors($messages) ->setSeverity(PHUIInfoView::SEVERITY_NOTICE);