Fix some Releeph jankiness in interacting with the redesign
Summary: Releeph does some really old sketchy stuff in result rendering. Modernize it, remove the holdover/oldschool interface (these were the last two implementors) and make errors a little softer. Test Plan: Viewed Releeph products and branches. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D13604
This commit is contained in:
@@ -217,18 +217,16 @@ final class PhabricatorApplicationSearchController
|
||||
|
||||
$objects = $engine->executeQuery($query, $pager);
|
||||
|
||||
// TODO: To support Dashboard panels, rendering is moving into
|
||||
// SearchEngines. Move it all the way in and then get rid of this.
|
||||
$engine->setRequest($request);
|
||||
$list = $engine->renderResults($objects, $saved_query);
|
||||
|
||||
$interface = 'PhabricatorApplicationSearchResultsControllerInterface';
|
||||
if ($parent instanceof $interface) {
|
||||
$list = $parent->renderResultsList($objects, $saved_query);
|
||||
} else {
|
||||
$engine->setRequest($request);
|
||||
|
||||
$list = $engine->renderResults(
|
||||
$objects,
|
||||
$saved_query);
|
||||
if (!($list instanceof PhabricatorApplicationSearchResultView)) {
|
||||
throw new Exception(
|
||||
pht(
|
||||
'SearchEngines must render a "%s" object, but this engine '.
|
||||
'(of class "%s") rendered something else.',
|
||||
'PhabricatorApplicationSearchResultView',
|
||||
get_class($engine)));
|
||||
}
|
||||
|
||||
if ($list->getActions()) {
|
||||
|
||||
Reference in New Issue
Block a user