From 992dedcadd20fa8a02cd13625cd756e80deae408 Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 24 Dec 2015 10:32:12 -0800 Subject: [PATCH] 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 --- .../query/DifferentialRevisionSearchEngine.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/applications/differential/query/DifferentialRevisionSearchEngine.php b/src/applications/differential/query/DifferentialRevisionSearchEngine.php index e50cab1cb9..60e16b58b9 100644 --- a/src/applications/differential/query/DifferentialRevisionSearchEngine.php +++ b/src/applications/differential/query/DifferentialRevisionSearchEngine.php @@ -11,6 +11,13 @@ final class DifferentialRevisionSearchEngine return 'PhabricatorDifferentialApplication'; } + public function newQuery() { + return id(new DifferentialRevisionQuery()) + ->needFlags(true) + ->needDrafts(true) + ->needRelationships(true); + } + public function getPageSize(PhabricatorSavedQuery $saved) { if ($saved->getQueryKey() == 'active') { return 0xFFFF;