mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 01:10:58 +01:00
Fix Differential transaction strengths
Summary: Fixes T4899. Action strengths got lost somewhere along the way; actions like "Accepted" should be stronger than "Changed Subscribers". Test Plan: Verified things sort as expected now, with major actions at the top. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T4899 Differential Revision: https://secure.phabricator.com/D8857
This commit is contained in:
parent
7671a962c7
commit
1b0d53ec65
1 changed files with 15 additions and 0 deletions
|
@ -112,6 +112,21 @@ final class DifferentialTransaction extends PhabricatorApplicationTransaction {
|
|||
return $phids;
|
||||
}
|
||||
|
||||
public function getActionStrength() {
|
||||
|
||||
switch ($this->getTransactionType()) {
|
||||
case self::TYPE_ACTION:
|
||||
return 3;
|
||||
case self::TYPE_UPDATE:
|
||||
return 2;
|
||||
case self::TYPE_INLINE:
|
||||
return 0.25;
|
||||
}
|
||||
|
||||
return parent::getActionStrength();
|
||||
}
|
||||
|
||||
|
||||
public function getActionName() {
|
||||
switch ($this->getTransactionType()) {
|
||||
case self::TYPE_INLINE:
|
||||
|
|
Loading…
Reference in a new issue