1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02: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:
epriestley 2018-06-22 10:36:37 -07:00
parent d84f866ca0
commit cac3dc4983

View file

@ -205,6 +205,9 @@ final class TransactionSearchConduitAPIMethod
case PhabricatorTransactions::TYPE_COMMENT: case PhabricatorTransactions::TYPE_COMMENT:
$type = 'comment'; $type = 'comment';
break; break;
case PhabricatorTransactions::TYPE_CREATE:
$type = 'create';
break;
} }
} }