Differential D19033 Diff 45639 src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Show First 20 Lines • Show All 637 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
case PhabricatorTransactions::TYPE_COLUMNS: | case PhabricatorTransactions::TYPE_COLUMNS: | ||||
return !$this->getInterestingMoves($this->getNewValue()); | return !$this->getInterestingMoves($this->getNewValue()); | ||||
case PhabricatorTransactions::TYPE_EDGE: | case PhabricatorTransactions::TYPE_EDGE: | ||||
$edge_type = $this->getMetadataValue('edge:type'); | $edge_type = $this->getMetadataValue('edge:type'); | ||||
switch ($edge_type) { | switch ($edge_type) { | ||||
case PhabricatorObjectMentionsObjectEdgeType::EDGECONST: | case PhabricatorObjectMentionsObjectEdgeType::EDGECONST: | ||||
case ManiphestTaskHasDuplicateTaskEdgeType::EDGECONST: | case ManiphestTaskHasDuplicateTaskEdgeType::EDGECONST: | ||||
case ManiphestTaskIsDuplicateOfTaskEdgeType::EDGECONST: | case ManiphestTaskIsDuplicateOfTaskEdgeType::EDGECONST: | ||||
case PhabricatorMutedEdgeType::EDGECONST: | |||||
case PhabricatorMutedByEdgeType::EDGECONST: | |||||
return true; | return true; | ||||
break; | break; | ||||
case PhabricatorObjectMentionedByObjectEdgeType::EDGECONST: | case PhabricatorObjectMentionedByObjectEdgeType::EDGECONST: | ||||
$record = PhabricatorEdgeChangeRecord::newFromTransaction($this); | $record = PhabricatorEdgeChangeRecord::newFromTransaction($this); | ||||
$add = $record->getAddedPHIDs(); | $add = $record->getAddedPHIDs(); | ||||
$add_value = reset($add); | $add_value = reset($add); | ||||
$add_handle = $this->getHandle($add_value); | $add_handle = $this->getHandle($add_value); | ||||
if ($add_handle->getPolicyFiltered()) { | if ($add_handle->getPolicyFiltered()) { | ||||
▲ Show 20 Lines • Show All 1,063 Lines • Show Last 20 Lines |