1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-19 19:21:10 +01:00
phorge-phorge/src/applications/search
epriestley 38ae81fb39 Throw when callers pass an invalid constraint to a "*.search" method
Summary:
Ref T11593. When you call a `*.search` method like `maniphest.search`, we don't currently validate that all the constraints you pass are recognized.

I think there were two very weak arguments for not doing this:

  - It makes compatibility in `arc` across versions slightly easier: if we add a new constraint, we could add it to `arc` but also do client-side filtering for a while.
  - Conduit parameter types //could//, in theory, accept multiple inputs or optional/alias inputs.

These reasons are pretty fluff and T11593 is a concrete issue caused by not validating. Just validate instead.

Test Plan:
  - Made a `maniphest.search` call with a bogus constraint, got an explicit error about the bad constraint.
  - Made a `maniphest.search` call with a valid constraint (`"ids"`).

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11593

Differential Revision: https://secure.phabricator.com/D16507
2016-09-07 09:07:53 -07:00
..
application Convert Maniphest merge operations to modern Relationship code 2016-06-30 08:35:45 -07:00
applicationpanel Rename "SearchEngine" to "FulltextStorageEngine" 2015-12-21 17:26:19 -08:00
buckets Use new Differential bucketing logic on default (non-dashboard) homepage 2016-05-19 15:20:39 -07:00
config Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
constants Extend from Phobject 2015-06-15 18:02:27 +10:00
controller Fix search results with tables, fatals in Phortune 2016-08-29 20:39:53 -07:00
editor Update EditEngine for two column 2016-03-28 09:18:55 -07:00
engine Throw when callers pass an invalid constraint to a "*.search" method 2016-09-07 09:07:53 -07:00
engineextension Redesign Config Application 2016-08-29 15:49:49 -07:00
field Throw when callers pass an invalid constraint to a "*.search" method 2016-09-07 09:07:53 -07:00
fulltextstorage Rename "SearchEngine" to "FulltextStorageEngine" 2015-12-21 17:26:19 -08:00
index Redesign Config Application 2016-08-29 15:49:49 -07:00
interface Prepare Profile Panels for adoption in other applications 2016-01-15 09:12:53 -08:00
management Rename "SearchEngine" to "FulltextStorageEngine" 2015-12-21 17:26:19 -08:00
ngrams Implement basic ngram search for Owners Package names 2015-12-22 08:00:33 -08:00
phidtype Fix a bad getURI() call in Profile Panel handle construction 2016-07-07 14:55:47 -07:00
profilepanel Explain how cats use their time 2016-08-22 14:42:56 -05:00
query Use "tag" more consistenty when referring to associating a project with an object 2016-01-24 10:02:42 -08:00
relationship Render parent and child tasks in Maniphest with a graph trace 2016-07-01 10:41:07 -07:00
storage Refine available filters and defaults for relationship selection 2016-06-30 11:51:36 -07:00
typeahead Added application name to the typeahead results for doc type search 2016-08-25 11:26:49 -04:00
view Fix search results with tables, fatals in Phortune 2016-08-29 20:39:53 -07:00
worker Convert all "DocumentIndexers" into "FulltextEngines" 2015-12-21 17:25:23 -08:00