1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00

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
This commit is contained in:
adonohue 2011-05-11 21:10:17 -07:00
parent 71efb46ba7
commit 30db15bc83

View file

@ -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')),
);