1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 03:02:43 +01:00
phorge-phorge/src/applications/config/module
epriestley 20e4c3fbd4 Modularize complex HTTP parameter types
Summary:
Ref T9132. We have several places in the code that sometimes need to parse complex types. For example, we accept all of these in ApplicationSearch and now in ApplicationEditor:

> /?subscribers=cat,dog
> /?subscribers=PHID-USER-1111
> /?subscribers[]=cat&subscribers[]=PHID-USER-2222

..etc. The logic to parse this stuff isn't too complex, but it isn't trivial either.

Right now it lives in some odd places. Notably, `PhabricatorApplicationSearchEngine` has some weird helper methods for this stuff. Rather than give `EditEngine` the same set of weird helper methods, pull all this stuff out into "HTTPParameterTypes".

Future diffs will add "Projects" and "Users" types where all the custom parsing/lookup logic can live. Then eventually the Search stuff can reuse these.

Generally, this just breaks the code up into smaller pieces that have more specific responsibilities.

Test Plan: {F944142}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9132

Differential Revision: https://secure.phabricator.com/D14402
2015-11-04 12:05:21 -08:00
..
PhabricatorConfigCollectorsModule.php Provide bin/garbage for interacting with garbage collection 2015-10-02 09:17:24 -07:00
PhabricatorConfigEdgeModule.php Modularize Aphront exception handling 2015-09-03 10:04:42 -07:00
PhabricatorConfigHTTPParameterTypesModule.php Modularize complex HTTP parameter types 2015-11-04 12:05:21 -08:00
PhabricatorConfigModule.php Modularize config modules + add edges, phid modules 2015-07-20 17:08:37 -07:00
PhabricatorConfigPHIDModule.php Show applications and icons for PHID types in config table 2015-10-24 08:16:23 -07:00
PhabricatorConfigRequestExceptionHandlerModule.php Modularize Aphront exception handling 2015-09-03 10:04:42 -07:00
PhabricatorConfigSiteModule.php Modularize Aphront exception handling 2015-09-03 10:04:42 -07:00
PhabricatorConfigVersionsModule.php Move version numbers to a dedicated "Versions" panel 2015-10-24 08:13:22 -07:00