mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Add "Authored" as a default filter to Differential
Summary: Fixes T3786. Not 100% sold on this (I don't want to restore all of the original filters, since users can and should just build the weird ones if they use them), but this is almost certainly the most useful of the defaults which ApplicationSearch removed. Test Plan: Viewed `/differential/`, executed the query. Reviewers: btrahan, chad Reviewed By: chad CC: aran Maniphest Tasks: T3786 Differential Revision: https://secure.phabricator.com/D6860
This commit is contained in:
parent
fb7c7de519
commit
eb3690f8c6
1 changed files with 4 additions and 0 deletions
|
@ -175,6 +175,7 @@ final class DifferentialRevisionSearchEngine
|
|||
|
||||
if ($this->requireViewer()->isLoggedIn()) {
|
||||
$names['active'] = pht('Active Revisions');
|
||||
$names['authored'] = pht('Authored');
|
||||
}
|
||||
|
||||
$names['all'] = pht('All Revisions');
|
||||
|
@ -193,6 +194,9 @@ final class DifferentialRevisionSearchEngine
|
|||
return $query
|
||||
->setParameter('responsiblePHIDs', array($viewer->getPHID()))
|
||||
->setParameter('status', DifferentialRevisionQuery::STATUS_OPEN);
|
||||
case 'authored':
|
||||
return $query
|
||||
->setParameter('authorPHIDs', array($viewer->getPHID()));
|
||||
case 'all':
|
||||
return $query;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue