Enable filtering for committed revisions

Summary:
engineers requested to supporting filtering by 'committed'
revisions, and I think it makes sense.

Test Plan: verified that all the three options worked

Reviewers: epriestley, btrahan, nh

Reviewed By: nh

CC: nh, wolffiex, aran

Differential Revision: https://secure.phabricator.com/D1383
This commit is contained in:
Jason Ge
2012-01-12 16:56:07 -08:00
parent bfbe6ec594
commit cf35a640ec
2 changed files with 12 additions and 0 deletions

View File

@@ -316,6 +316,7 @@ class DifferentialRevisionListController extends DifferentialController {
array(
'all' => 'All',
'open' => 'Open',
'committed' => 'Committed',
),
$params['status'],
$uri,
@@ -348,6 +349,8 @@ class DifferentialRevisionListController extends DifferentialController {
case 'status':
if ($params['status'] == 'open') {
$query->withStatus(DifferentialRevisionQuery::STATUS_OPEN);
} elseif ($params['status'] == 'committed') {
$query->withStatus(DifferentialRevisionQuery::STATUS_COMMITTED);
}
break;
case 'order':