mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01: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:
parent
71efb46ba7
commit
30db15bc83
1 changed files with 2 additions and 0 deletions
|
@ -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')),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue