Begin making card updates on boards independent of context

Summary:
Ref T4900. To eventually support realtime board updates, we need to be able to perform a board state update without the context of the action which caused it.

For example, if the server says "update card Y", we need to know what to do without being told "card Y was moved from column A to column B" explicitly. Currently, all the update code relies on knowing what happened and which nodes were affected.

This is only a small step forward, but starts making things a bit more independent and consistent.

Test Plan:
  - Moved cards around.
  - Changed card cover images.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T4900

Differential Revision: https://secure.phabricator.com/D15228
This commit is contained in:
epriestley
2016-02-09 06:14:42 -08:00
parent 9ed9764784
commit 01084bfe22
4 changed files with 97 additions and 57 deletions

View File

@@ -192,7 +192,8 @@ abstract class PhabricatorProjectController extends PhabricatorController {
return id(new AphrontAjaxResponse())
->setContent(
array(
'task' => $item,
'objectPHID' => $object->getPHID(),
'cardHTML' => $item,
));
}