Differential D20491 Diff 48922 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 697 Lines • ▼ Show 20 Lines | 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 PhabricatorObjectMentionedByObjectEdgeType::EDGECONST: | case PhabricatorObjectMentionedByObjectEdgeType::EDGECONST: | ||||
case DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST: | case DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST: | ||||
case DifferentialRevisionDependedOnByRevisionEdgeType::EDGECONST: | case DifferentialRevisionDependedOnByRevisionEdgeType::EDGECONST: | ||||
case ManiphestTaskHasCommitEdgeType::EDGECONST: | case ManiphestTaskHasCommitEdgeType::EDGECONST: | ||||
case DiffusionCommitHasTaskEdgeType::EDGECONST: | case DiffusionCommitHasTaskEdgeType::EDGECONST: | ||||
case DiffusionCommitHasRevisionEdgeType::EDGECONST: | |||||
case DifferentialRevisionHasCommitEdgeType::EDGECONST: | |||||
return true; | return true; | ||||
case PhabricatorProjectObjectHasProjectEdgeType::EDGECONST: | case PhabricatorProjectObjectHasProjectEdgeType::EDGECONST: | ||||
// When an object is first created, we hide any corresponding | // When an object is first created, we hide any corresponding | ||||
// project transactions in the web UI because you can just look at | // project transactions in the web UI because you can just look at | ||||
// the UI element elsewhere on screen to see which projects it | // the UI element elsewhere on screen to see which projects it | ||||
// is tagged with. However, in mail there's no other way to get | // is tagged with. However, in mail there's no other way to get | ||||
// this information, and it has some amount of value to users, so | // this information, and it has some amount of value to users, so | ||||
// we keep the transaction. See T10493. | // we keep the transaction. See T10493. | ||||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
$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 PhabricatorObjectMentionedByObjectEdgeType::EDGECONST: | case PhabricatorObjectMentionedByObjectEdgeType::EDGECONST: | ||||
case DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST: | case DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST: | ||||
case DifferentialRevisionDependedOnByRevisionEdgeType::EDGECONST: | case DifferentialRevisionDependedOnByRevisionEdgeType::EDGECONST: | ||||
case ManiphestTaskHasCommitEdgeType::EDGECONST: | case ManiphestTaskHasCommitEdgeType::EDGECONST: | ||||
case DiffusionCommitHasTaskEdgeType::EDGECONST: | case DiffusionCommitHasTaskEdgeType::EDGECONST: | ||||
case DiffusionCommitHasRevisionEdgeType::EDGECONST: | |||||
case DifferentialRevisionHasCommitEdgeType::EDGECONST: | |||||
return true; | return true; | ||||
default: | default: | ||||
break; | break; | ||||
} | } | ||||
break; | break; | ||||
case PhabricatorTransactions::TYPE_INLINESTATE: | case PhabricatorTransactions::TYPE_INLINESTATE: | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 998 Lines • Show Last 20 Lines |