mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 01:10:58 +01:00
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:
parent
c9838d81e2
commit
a56810283a
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue