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
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) {