mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-20 13:52:40 +01:00
Fix audit counts in some queries
Summary: Prior to D5140, "PhabricatorAuditCommitQuery::STATUS_OPEN" was defined as "concern only". This didn't really make sense; we redefined it to "concern or audit required". However, a couple of queries needed to be updated since they really meant "concern" even though they said "open". I also switch the order of problem commits / audit required on the Audit homepage to be consistent with the bubbles on home. Test Plan: Looked at home, /audit/. Reviewers: chad Reviewed By: chad CC: aran Differential Revision: https://secure.phabricator.com/D5162
This commit is contained in:
parent
57cce93e5a
commit
19d67b778d
2 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@ final class PhabricatorApplicationAudit extends PhabricatorApplication {
|
|||
|
||||
$commits = id(new PhabricatorAuditCommitQuery())
|
||||
->withAuthorPHIDs($phids)
|
||||
->withStatus(PhabricatorAuditQuery::STATUS_OPEN)
|
||||
->withStatus(PhabricatorAuditCommitQuery::STATUS_CONCERN)
|
||||
->execute();
|
||||
|
||||
$count = count($commits);
|
||||
|
|
|
@ -271,8 +271,8 @@ final class PhabricatorAuditListController extends PhabricatorAuditController {
|
|||
$views = array();
|
||||
switch ($this->filter) {
|
||||
case 'active':
|
||||
$views[] = $this->buildAuditView($handle);
|
||||
$views[] = $this->buildCommitView($handle);
|
||||
$views[] = $this->buildAuditView($handle);
|
||||
break;
|
||||
case 'audits':
|
||||
case 'user':
|
||||
|
@ -455,7 +455,7 @@ final class PhabricatorAuditListController extends PhabricatorAuditController {
|
|||
|
||||
switch ($this->filter) {
|
||||
case 'active':
|
||||
$query->withStatus(PhabricatorAuditCommitQuery::STATUS_OPEN);
|
||||
$query->withStatus(PhabricatorAuditCommitQuery::STATUS_CONCERN);
|
||||
break;
|
||||
default:
|
||||
switch ($this->filterStatus) {
|
||||
|
|
Loading…
Reference in a new issue