Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F17948828
D8070.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
780 B
Referenced Files
None
Subscribers
None
D8070.id.diff
View Options
Index: src/workflow/ArcanistTasksWorkflow.php
===================================================================
--- src/workflow/ArcanistTasksWorkflow.php
+++ src/workflow/ArcanistTasksWorkflow.php
@@ -228,13 +228,18 @@
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) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 1, 10:05 PM (3 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8771331
Default Alt Text
D8070.id.diff (780 B)
Attached To
Mode
D8070: Use `user.query`, not `user.find`, in `arc tasks`
Attached
Detach File
Event Timeline
Log In to Comment