Page MenuHomePhorge

T15865 debug
ActivePublic

Authored by aklapper on Jul 13 2024, 15:41.
diff --git a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
index 1d9d3282b7..2911484c80 100644
--- a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
+++ b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
@@ -1621,6 +1621,13 @@ abstract class PhabricatorApplicationTransactionEditor
$this->mailStamps[] = $stamp->toDictionary();
}
}
+ foreach ($xactions as $xaction) {
+ phlog('PATE: TransactionType: ' . $xaction->getTransactionType());
+ phlog('PATE: ActionName: ' . $xaction->getActionName());
+ phlog('PATE: ActionStrength: ' . $xaction->getActionStrength());
+ phlog('------------------------');
+ }
+ phlog('PATE: actions by strength:' . json_encode(msortv($xactions, 'newActionStrengthSortVector')));
if ($this->shouldPublishFeedStory($object, $xactions)) {
$this->feedShouldPublish = true;
diff --git a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
index 607b3713a6..1472ba7a1f 100644
--- a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
+++ b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
@@ -1598,6 +1598,7 @@ abstract class PhabricatorApplicationTransaction
}
public function getActionName() {
+ phlog(pht('PAT: TA Type: %s', $this->getTransactionType()));
switch ($this->getTransactionType()) {
case PhabricatorTransactions::TYPE_COMMENT:
return pht('Commented On');