Revert audit queries back to original behavior
Test Plan: / - didn't see all my commits /owners/package/1/ - didn't see all package commits in Needs Attention Reviewers: AnhNhan, epriestley Reviewed By: epriestley CC: aran, epriestley Maniphest Tasks: T2582 Differential Revision: https://secure.phabricator.com/D5186
This commit is contained in:
@@ -181,13 +181,13 @@ final class PhabricatorAuditCommitQuery {
|
||||
case self::STATUS_CONCERN:
|
||||
$where[] = qsprintf(
|
||||
$conn_r,
|
||||
'c.auditStatus = %s',
|
||||
'c.auditStatus = %d',
|
||||
PhabricatorAuditCommitStatusConstants::CONCERN_RAISED);
|
||||
break;
|
||||
case self::STATUS_OPEN:
|
||||
$where[] = qsprintf(
|
||||
$conn_r,
|
||||
'c.auditStatus IN (%Ls)',
|
||||
'c.auditStatus IN (%Ld)',
|
||||
PhabricatorAuditCommitStatusConstants::getOpenStatusConstants());
|
||||
break;
|
||||
case self::STATUS_ANY:
|
||||
|
||||
@@ -409,7 +409,7 @@ final class PhabricatorDirectoryMainController
|
||||
|
||||
$query = new PhabricatorAuditCommitQuery();
|
||||
$query->withAuthorPHIDs($phids);
|
||||
$query->withStatus(PhabricatorAuditQuery::STATUS_OPEN);
|
||||
$query->withStatus(PhabricatorAuditCommitQuery::STATUS_CONCERN);
|
||||
$query->needCommitData(true);
|
||||
$query->setLimit(10);
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ final class PhabricatorOwnersDetailController
|
||||
|
||||
$attention_query = id(new PhabricatorAuditCommitQuery())
|
||||
->withPackagePHIDs(array($package->getPHID()))
|
||||
->withStatus(PhabricatorAuditCommitQuery::STATUS_OPEN)
|
||||
->withStatus(PhabricatorAuditCommitQuery::STATUS_CONCERN)
|
||||
->needCommitData(true)
|
||||
->needAudits(true)
|
||||
->setLimit(10);
|
||||
|
||||
Reference in New Issue
Block a user