1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 03:12:41 +01:00
phorge-phorge/src/applications/fund
epriestley 2218caee0f Reduce the amount of boilerplate that implementing FerretInterface requires
Summary:
See brief discussion in D18554. All the index tables are the same for every application (and, at this point, seem unlikely to change) and we never actually pass these objects around (they're only used internally).

In some other cases (like Transactions) not every application has the same tables (for example, Differential has extra field for inline comments), and/or we pass the objects around (lots of stuff uses `$xactions` directly).

However, in this case, and in Edges, we don't interact with any representation of the database state directly in much of the code, and it doesn't change from application to application.

Just automatically define document, field, and ngram tables for anything which implements `FerretInterface`. This makes the query and index logic a tiny bit messier but lets us delete a ton of boilerplate classes.

Test Plan: Indexed objects, searched for objects. Same results as before with much less code. Ran `bin/storage upgrade`, got a clean bill of health.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12819

Differential Revision: https://secure.phabricator.com/D18559
2017-09-07 13:23:31 -07:00
..
application Update Fund for EditEngine commenting 2017-05-09 09:05:43 -07:00
capability Scaffolding for Fund 2014-09-11 13:38:58 -07:00
controller Update Fund for EditEngine commenting 2017-05-09 09:05:43 -07:00
editor Update Fund for EditEngine 2017-05-09 08:46:16 -07:00
mail phtize all the things 2015-05-22 21:16:39 +10:00
phid Mark PhabricatorPHIDType::getPHIDTypeApplicationClass() as abstract 2015-11-03 06:47:12 +11:00
phortune Update Fund for modular transactions 2017-05-05 11:03:03 -07:00
query Support Ferret engine in Fund initiatives 2017-09-07 13:22:57 -07:00
remarkup Scaffolding for Fund 2014-09-11 13:38:58 -07:00
search Reduce the amount of boilerplate that implementing FerretInterface requires 2017-09-07 13:23:31 -07:00
storage Reduce the amount of boilerplate that implementing FerretInterface requires 2017-09-07 13:23:31 -07:00
xaction Fix FundRefund transaction calls 2017-05-09 09:59:41 -07:00