mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Give "create" transactions a readable type in "transaction.search"
Summary: Ref T13151. See PHI725. By default, "transaction.search" doesn't provide details about transactions because many have bad/weird/policy-violating internal types or fields. The "create" transaction is simple and straightforward, so label it to allow callers to distinguish it. Test Plan: - Created a new task. - Called `transaction.search` on it. - Saw the labelled "create" transaction. Reviewers: amckinley Reviewed By: amckinley Subscribers: swisspol Maniphest Tasks: T13151 Differential Revision: https://secure.phabricator.com/D19505
This commit is contained in:
parent
d84f866ca0
commit
cac3dc4983
1 changed files with 3 additions and 0 deletions
|
@ -205,6 +205,9 @@ final class TransactionSearchConduitAPIMethod
|
|||
case PhabricatorTransactions::TYPE_COMMENT:
|
||||
$type = 'comment';
|
||||
break;
|
||||
case PhabricatorTransactions::TYPE_CREATE:
|
||||
$type = 'create';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue