Differential D8898 Diff 21120 src/applications/transactions/controller/PhabricatorApplicationTransactionValueController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/controller/PhabricatorApplicationTransactionValueController.php
| Show All 21 Lines | public function processRequest() { | ||||
| if (!$xaction) { | if (!$xaction) { | ||||
| return new Aphront404Response(); | return new Aphront404Response(); | ||||
| } | } | ||||
| // For now, this pathway only supports policy transactions | // For now, this pathway only supports policy transactions | ||||
| // to show the details of custom policies. If / when this pathway | // to show the details of custom policies. If / when this pathway | ||||
| // supports more transaction types, rendering coding should be moved | // supports more transaction types, rendering coding should be moved | ||||
| // into PhabricatorTransactions e.g. feed rendering code. | // into PhabricatorTransactions e.g. feed rendering code. | ||||
| // TODO: This should be some kind of "hey do you support this?" thing on | |||||
| // the transactions themselves. | |||||
| switch ($xaction->getTransactionType()) { | switch ($xaction->getTransactionType()) { | ||||
| case PhabricatorTransactions::TYPE_VIEW_POLICY: | case PhabricatorTransactions::TYPE_VIEW_POLICY: | ||||
| case PhabricatorTransactions::TYPE_EDIT_POLICY: | case PhabricatorTransactions::TYPE_EDIT_POLICY: | ||||
| case PhabricatorTransactions::TYPE_JOIN_POLICY: | case PhabricatorTransactions::TYPE_JOIN_POLICY: | ||||
| case PhabricatorRepositoryTransaction::TYPE_PUSH_POLICY: | |||||
| break; | break; | ||||
| default: | default: | ||||
| return new Aphront404Response(); | return new Aphront404Response(); | ||||
| break; | break; | ||||
| } | } | ||||
| if ($this->value == 'old') { | if ($this->value == 'old') { | ||||
| $value = $xaction->getOldValue(); | $value = $xaction->getOldValue(); | ||||
| ▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines | |||||