mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01:00
Add NEEDS_REVISION support to DifferentialRevisionQuery
Reviewed by: epriestley See: https://github.com/facebook/phabricator/pull/370
This commit is contained in:
parent
1ab7622edf
commit
8b07c498d4
1 changed files with 17 additions and 8 deletions
|
@ -17,14 +17,15 @@ final class DifferentialRevisionQuery
|
|||
|
||||
private $pathIDs = array();
|
||||
|
||||
private $status = 'status-any';
|
||||
const STATUS_ANY = 'status-any';
|
||||
const STATUS_OPEN = 'status-open';
|
||||
const STATUS_ACCEPTED = 'status-accepted';
|
||||
const STATUS_NEEDS_REVIEW = 'status-needs-review';
|
||||
const STATUS_CLOSED = 'status-closed'; // NOTE: Same as 'committed'.
|
||||
const STATUS_COMMITTED = 'status-committed'; // TODO: Remove.
|
||||
const STATUS_ABANDONED = 'status-abandoned';
|
||||
private $status = 'status-any';
|
||||
const STATUS_ANY = 'status-any';
|
||||
const STATUS_OPEN = 'status-open';
|
||||
const STATUS_ACCEPTED = 'status-accepted';
|
||||
const STATUS_NEEDS_REVIEW = 'status-needs-review';
|
||||
const STATUS_NEEDS_REVISION = 'status-needs-revision';
|
||||
const STATUS_CLOSED = 'status-closed'; // NOTE: Same as 'committed'
|
||||
const STATUS_COMMITTED = 'status-committed'; // TODO: Remove.
|
||||
const STATUS_ABANDONED = 'status-abandoned';
|
||||
|
||||
private $authors = array();
|
||||
private $draftAuthors = array();
|
||||
|
@ -660,6 +661,14 @@ final class DifferentialRevisionQuery
|
|||
ArcanistDifferentialRevisionStatus::NEEDS_REVIEW,
|
||||
));
|
||||
break;
|
||||
case self::STATUS_NEEDS_REVISION:
|
||||
$where[] = qsprintf(
|
||||
$conn_r,
|
||||
'r.status IN (%Ld)',
|
||||
array(
|
||||
ArcanistDifferentialRevisionStatus::NEEDS_REVISION,
|
||||
));
|
||||
break;
|
||||
case self::STATUS_ACCEPTED:
|
||||
$where[] = qsprintf(
|
||||
$conn_r,
|
||||
|
|
Loading…
Reference in a new issue