Remove unused apps from the DocumentType typeahead

Summary: Ref T10951. This diff removes uninstalled applications from the result set for DocumentType restults

Test Plan: Uninstall an application (diviner for example), then go to the document type search menu and ensure that the uninstalled application doesn't show up.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley

Maniphest Tasks: T10951

Differential Revision: https://secure.phabricator.com/D16445
This commit is contained in:
Josh Cox
2016-08-24 19:10:04 -04:00
parent a1f25fdb3e
commit 7f7c3acfac

View File

@@ -25,8 +25,10 @@ final class PhabricatorSearchDocumentTypeDatasource
}
private function buildResults() {
$viewer = $this->getViewer();
$types =
PhabricatorSearchApplicationSearchEngine::getIndexableDocumentTypes();
PhabricatorSearchApplicationSearchEngine::getIndexableDocumentTypes(
$viewer);
$icons = mpull(
PhabricatorPHIDType::getAllTypes(),