1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-25 15:00:58 +01:00
phorge-phorge/src/applications/repository/phid
epriestley 8fe27800fc Don't show document types in search for uninstalled applications
Summary:
Fixes T4917. Currently, if a user doesn't have access to, e.g., Phriction, they still get a checkbox in the search results to search for Wiki Documents. Those results will be filtered anyway, so this is confusing at best.

Instead, bind PHID types to applications. This is a relatively tailored fix; some areas for potential future work:

  - Go through every PHID type and bind them all to applications. Vaguely nice to have, but doesn't get us anything for now.
  - If no searchable application is installed, we don't show you an error state. This isn't currently possible ("People" is always installed) but in the interest of generality we could throw an exception or something at least.
  - The elasticserach thing could probably constrain types to visible types, but we don't have a viewer there easily right now.

Test Plan: Uninstalled Phriction, saw the checkbox vanish.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4917

Differential Revision: https://secure.phabricator.com/D8904
2014-04-29 15:01:50 -07:00
..
PhabricatorRepositoryPHIDTypeArcanistProject.php Lock policy queries to their applications 2013-10-21 17:20:27 -07:00
PhabricatorRepositoryPHIDTypeCommit.php Don't show document types in search for uninstalled applications 2014-04-29 15:01:50 -07:00
PhabricatorRepositoryPHIDTypeMirror.php Remove many redundant implementations of canLoadNamedObject() 2013-12-18 12:00:01 -08:00
PhabricatorRepositoryPHIDTypePushEvent.php Provide a real object ("PhabricatorRepositoryPushEvent") to represent an entire push transaction 2014-03-26 13:51:06 -07:00
PhabricatorRepositoryPHIDTypePushLog.php Remove many redundant implementations of canLoadNamedObject() 2013-12-18 12:00:01 -08:00
PhabricatorRepositoryPHIDTypeRepository.php Lock policy queries to their applications 2013-10-21 17:20:27 -07:00