1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00

Modernize Differential SearchEngine just enough to get NUX

Summary: Ref T10032. This is sufficent to hit NUX without doing anything bad.

Test Plan:
  - Visited NUX.
  - Browsed normally.

{F1043191}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10032

Differential Revision: https://secure.phabricator.com/D14876
This commit is contained in:
epriestley 2015-12-24 10:32:12 -08:00
parent 37f1f55557
commit 992dedcadd

View file

@ -11,6 +11,13 @@ final class DifferentialRevisionSearchEngine
return 'PhabricatorDifferentialApplication'; return 'PhabricatorDifferentialApplication';
} }
public function newQuery() {
return id(new DifferentialRevisionQuery())
->needFlags(true)
->needDrafts(true)
->needRelationships(true);
}
public function getPageSize(PhabricatorSavedQuery $saved) { public function getPageSize(PhabricatorSavedQuery $saved) {
if ($saved->getQueryKey() == 'active') { if ($saved->getQueryKey() == 'active') {
return 0xFFFF; return 0xFFFF;