Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialTransaction.php
| Show All 35 Lines | if ($xaction_type == PhabricatorTransactions::TYPE_CUSTOMFIELD) { | ||||
| return new DifferentialRevisionTitleTransaction(); | return new DifferentialRevisionTitleTransaction(); | ||||
| case 'differential:test-plan': | case 'differential:test-plan': | ||||
| return new DifferentialRevisionTestPlanTransaction(); | return new DifferentialRevisionTestPlanTransaction(); | ||||
| case 'differential:repository': | case 'differential:repository': | ||||
| return new DifferentialRevisionRepositoryTransaction(); | return new DifferentialRevisionRepositoryTransaction(); | ||||
| } | } | ||||
| } | } | ||||
| if ($xaction_type == 'differential:status') { | |||||
| return new DifferentialRevisionStatusTransaction(); | |||||
| } | |||||
| return parent::newFallbackModularTransactionType(); | return parent::newFallbackModularTransactionType(); | ||||
| } | } | ||||
| public function setIsCommandeerSideEffect($is_side_effect) { | public function setIsCommandeerSideEffect($is_side_effect) { | ||||
| $this->isCommandeerSideEffect = $is_side_effect; | $this->isCommandeerSideEffect = $is_side_effect; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 452 Lines • ▼ Show 20 Lines | foreach ($group as $xaction) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| return parent::shouldDisplayGroupWith($group); | return parent::shouldDisplayGroupWith($group); | ||||
| } | } | ||||
| private function isStatusTransaction($xaction) { | private function isStatusTransaction($xaction) { | ||||
| $old_status = 'differential:status'; | $status_type = DifferentialRevisionStatusTransaction::TRANSACTIONTYPE; | ||||
| if ($xaction->getTransactionType() == $old_status) { | if ($xaction->getTransactionType() == $status_type) { | ||||
| return true; | |||||
| } | |||||
| $new_status = DifferentialRevisionStatusTransaction::TRANSACTIONTYPE; | |||||
| if ($xaction->getTransactionType() == $new_status) { | |||||
| return true; | return true; | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| public function getColor() { | public function getColor() { | ||||
| ▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines | |||||