1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 11:12:42 +01:00
phorge-phorge/src/applications/ponder
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
..
application Use PHUIRemarkupPreviewPanel in Ponder 2013-08-05 10:47:06 -07:00
constants Move PhabricatorTagView to PHUITagView 2014-01-14 14:09:52 -08:00
controller Mark answers as page objects in Ponder 2014-01-10 10:19:00 -08:00
editor Maniphest Tasks + Project Boards - some polish 2014-03-04 17:01:33 -08:00
feed Ponder - make feed stories and emails a bit better 2013-09-18 15:15:25 -07:00
mail Ponder - make feed stories and emails a bit better 2013-09-18 15:15:25 -07:00
phid Don't show document types in search for uninstalled applications 2014-04-29 15:01:50 -07:00
query Lock policy queries to their applications 2013-10-21 17:20:27 -07:00
remarkup Various linter fixes. 2014-02-26 12:44:58 -08:00
search Use ApplicationTransactions/CustomField to power Differential global search 2014-02-26 11:18:06 -08:00
storage Move Timeline icons to Fonts 2014-04-22 08:25:54 -07:00
view Remove flavor text for action buttons 2014-04-18 17:51:46 -07:00