mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Make legacy revision statuses from "differential.query" have type "string" again
Summary: Ref T2543. The type on these got changed by accident, it should be "string" (crazy nonsense, compatible) not "int" (sensible, not compatible). (New API uses sensible strings like "accepted" only.) Test Plan: Called `differential.query` from web UI, saw `"2"` and similar statuses. Reviewers: chad, jmeador, lvital Reviewed By: jmeador, lvital Maniphest Tasks: T2543 Differential Revision: https://secure.phabricator.com/D18493
This commit is contained in:
parent
f49d103af5
commit
b4cbea9018
1 changed files with 5 additions and 1 deletions
|
@ -218,7 +218,11 @@ final class DifferentialQueryConduitAPIMethod
|
|||
'dateCreated' => $revision->getDateCreated(),
|
||||
'dateModified' => $revision->getDateModified(),
|
||||
'authorPHID' => $revision->getAuthorPHID(),
|
||||
'status' => $revision->getLegacyRevisionStatus(),
|
||||
|
||||
// NOTE: For backward compatibility this is explicitly a string, like
|
||||
// "2", even though the value of the string is an integer. See PHI14.
|
||||
'status' => (string)$revision->getLegacyRevisionStatus(),
|
||||
|
||||
'statusName' => $revision->getStatusDisplayName(),
|
||||
'properties' => $revision->getProperties(),
|
||||
'branch' => $diff->getBranch(),
|
||||
|
|
Loading…
Reference in a new issue