Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13174527
D8070.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.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
Wed, May 8, 11:37 PM (2 w, 3 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6273529
Default Alt Text
D8070.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