mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-22 21:40:54 +01:00
Use user.query
, not user.find
, in arc tasks
Summary: I'm going to deprecate `user.find`, `user.query` is more modern/powerful and obsoletes it. Test Plan: Ran `arc tasks --owner epriestley`. Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D8070
This commit is contained in:
parent
2c2c5663cb
commit
e4b1e8e681
1 changed files with 9 additions and 4 deletions
|
@ -228,13 +228,18 @@ EOTEXT
|
|||
private function findOwnerPHID($owner) {
|
||||
$conduit = $this->getConduit();
|
||||
|
||||
$owner_phid = $conduit->callMethodSynchronous(
|
||||
'user.find',
|
||||
$users = $conduit->callMethodSynchronous(
|
||||
'user.query',
|
||||
array(
|
||||
'aliases' => array($owner),
|
||||
'usernames' => array($owner),
|
||||
));
|
||||
|
||||
return idx($owner_phid, $owner);
|
||||
if (!$users) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$user = head($users);
|
||||
return idx($user, 'phid');
|
||||
}
|
||||
|
||||
private function loadManiphestTasks($status, $owner_phid, $order, $limit) {
|
||||
|
|
Loading…
Reference in a new issue