@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Show related objects on daemon worker task queue detail pages

Summary:
See PHI287. Currently, you can't get very much information about a task in the worker queue from the web UI.

This is largely intentional (e.g., it's bad if we let you inspect the content of a "send an administrator's password reset email" task), and a lot of the data is task-class specific so it would be a lot of work to expose it, but we can add one useful piece of information pretty easily: for tasks with an `objectPHID` that points at a valid object that's visible to the user, tell the user which object the task is associated with.

Test Plan: {F5386562}

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D18890

+11 -4
+11 -4
src/applications/daemon/controller/PhabricatorWorkerTaskDetailController.php
··· 79 79 ->appendChild($view); 80 80 } 81 81 82 - private function buildPropertyListView( 83 - PhabricatorWorkerTask $task) { 82 + private function buildPropertyListView(PhabricatorWorkerTask $task) { 83 + $viewer = $this->getViewer(); 84 84 85 - $viewer = $this->getRequest()->getUser(); 85 + $view = new PHUIPropertyListView(); 86 86 87 - $view = new PHUIPropertyListView(); 87 + $object_phid = $task->getObjectPHID(); 88 + if ($object_phid) { 89 + $handles = $viewer->loadHandles(array($object_phid)); 90 + $handle = $handles[$object_phid]; 91 + if ($handle->isComplete()) { 92 + $view->addProperty(pht('Object'), $handle->renderLink()); 93 + } 94 + } 88 95 89 96 if ($task->isArchived()) { 90 97 switch ($task->getResult()) {