Differential D20652 Diff 49268 src/applications/project/controller/PhabricatorProjectBoardReloadController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectBoardReloadController.php
| Show All 19 Lines | public function handleRequest(AphrontRequest $request) { | ||||
| $board_phid = $project->getPHID(); | $board_phid = $project->getPHID(); | ||||
| $objects = $state->getObjects(); | $objects = $state->getObjects(); | ||||
| $object_phids = mpull($objects, 'getPHID'); | $object_phids = mpull($objects, 'getPHID'); | ||||
| $engine = id(new PhabricatorBoardResponseEngine()) | $engine = id(new PhabricatorBoardResponseEngine()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->setBoardPHID($board_phid) | ->setBoardPHID($board_phid) | ||||
| ->setObjects($objects) | |||||
| ->setUpdatePHIDs($object_phids); | ->setUpdatePHIDs($object_phids); | ||||
| // TODO: We don't currently process "order" properly. If a user is viewing | // TODO: We don't currently process "order" properly. If a user is viewing | ||||
| // a board grouped by "Owner", and another user changes a task to be owned | // a board grouped by "Owner", and another user changes a task to be owned | ||||
| // by a user who currently owns nothing on the board, the new header won't | // by a user who currently owns nothing on the board, the new header won't | ||||
| // generate correctly if the first user presses "R". | // generate correctly if the first user presses "R". | ||||
| return $engine->buildResponse(); | return $engine->buildResponse(); | ||||
| } | } | ||||
| } | } | ||||