Add a "problem commits" prebuilt filter to Audits

Summary: Ref T4715. We show this number on the homepage, provide an easy way to query matching commits.

Test Plan: Clicked "problem commits", saw them.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4715

Differential Revision: https://secure.phabricator.com/D8880
This commit is contained in:
epriestley
2014-04-28 08:26:08 -07:00
parent 8716e734f0
commit 9da255efaa
2 changed files with 12 additions and 2 deletions

View File

@@ -418,6 +418,7 @@ final class PhabricatorHomeMainController
->withAuditorPHIDs($phids)
->withAuditStatus(DiffusionCommitQuery::AUDIT_STATUS_OPEN)
->withAuditAwaitingUser($user)
->needAuditRequests(true)
->needCommitData(true)
->setLimit(10);
@@ -458,6 +459,7 @@ final class PhabricatorHomeMainController
->withAuthorPHIDs($phids)
->withAuditStatus(DiffusionCommitQuery::AUDIT_STATUS_CONCERN)
->needCommitData(true)
->needAuditRequests(true)
->setLimit(10);
$commits = $query->execute();