Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialTransaction.php
| Show All 21 Lines | public function getBaseTransactionClass() { | ||||
| return 'DifferentialRevisionTransactionType'; | return 'DifferentialRevisionTransactionType'; | ||||
| } | } | ||||
| protected function newFallbackModularTransactionType() { | protected function newFallbackModularTransactionType() { | ||||
| // TODO: This allows us to render modern strings for older transactions | // TODO: This allows us to render modern strings for older transactions | ||||
| // without doing a migration. At some point, we should do a migration and | // without doing a migration. At some point, we should do a migration and | ||||
| // throw this away. | // throw this away. | ||||
| // NOTE: Old reviewer edits are raw edge transactions. They could be | |||||
| // migrated to modular transactions when the rest of this migrates. | |||||
| $xaction_type = $this->getTransactionType(); | $xaction_type = $this->getTransactionType(); | ||||
| if ($xaction_type == PhabricatorTransactions::TYPE_CUSTOMFIELD) { | if ($xaction_type == PhabricatorTransactions::TYPE_CUSTOMFIELD) { | ||||
| switch ($this->getMetadataValue('customfield:key')) { | switch ($this->getMetadataValue('customfield:key')) { | ||||
| case 'differential:title': | case 'differential:title': | ||||
| return new DifferentialRevisionTitleTransaction(); | return new DifferentialRevisionTitleTransaction(); | ||||
| case 'differential:test-plan': | case 'differential:test-plan': | ||||
| return new DifferentialRevisionTestPlanTransaction(); | return new DifferentialRevisionTestPlanTransaction(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 653 Lines • Show Last 20 Lines | |||||