From 30db15bc83271df218e5a4b7c01274b9144a0b7d Mon Sep 17 00:00:00 2001 From: adonohue Date: Wed, 11 May 2011 21:10:17 -0700 Subject: [PATCH] Add name to path.getowners Summary: Also retrieve package name in path.getowners, useful for 'arc owners'. Test Plan: Conduit console Reviewed By: epriestley Reviewers: epriestley CC: aran, epriestley Differential Revision: 273 --- .../method/path/getowners/ConduitAPI_path_getowners_Method.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/applications/conduit/method/path/getowners/ConduitAPI_path_getowners_Method.php b/src/applications/conduit/method/path/getowners/ConduitAPI_path_getowners_Method.php index f507ccc474..be28ce67b9 100644 --- a/src/applications/conduit/method/path/getowners/ConduitAPI_path_getowners_Method.php +++ b/src/applications/conduit/method/path/getowners/ConduitAPI_path_getowners_Method.php @@ -34,6 +34,7 @@ class ConduitAPI_path_getowners_Method extends ConduitAPIMethod { "array(". "array(". "'phid' => phid, ". + "'name' => string, ". "'primaryOwner' => phid, ". "'owners' => array(phid)))"; } @@ -67,6 +68,7 @@ class ConduitAPI_path_getowners_Method extends ConduitAPIMethod { $result[] = array( 'phid' => $package->getPHID(), + 'name' => $package->getName(), 'primaryOwner' => $package->getPrimaryOwnerPHID(), 'owners' => array_values(mpull($p_owners, 'getUserPHID')), );