1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 19:32:40 +01:00
phorge-phorge/src/applications/almanac/controller
epriestley 2f1b5ae010 Give Almanac generic, custom-field-based properties
Summary:
Ref T5833. Currently, we have an `AlmanacDeviceProperty`, but it doesn't use CustomFields and is specific to devices. Make this more generic:

  - Reuse most of the CustomField infrastructure (so we can eventually get easy support for nice editor UIs, etc).
  - Make properties more generic so Services, Bindings and Devices can all have them.

The major difference between this implementation and existing CustomField implementations is that all other implementations are application-authoritative: the application code determines what the available list of fields is.

I want Almanac to be a bit more freeform (basically: you can write whatever properties you want, and we'll put nice UIs on them if we have a nice UI available). For example, we might have some sort of "ServiceTemplate" that says "a database binding should usually have the fields 'writable', 'active', 'credential'", which would do things like offer these as options and put a nice UI on them, but you should also be able to write whatever other properties you want and add services without building a specific service template for them.

This involves a little bit of rule bending, but ends up pretty clean. We can adjust CustomField to accommodate this a bit more gracefully later on if it makes sense.

Test Plan: {F229172}

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T5833

Differential Revision: https://secure.phabricator.com/D10777
2014-11-05 15:27:16 -08:00
..
AlmanacBindingEditController.php Add AlmanacBinding, to bind a service to an interface 2014-10-27 13:39:36 -07:00
AlmanacBindingViewController.php Add AlmanacBinding, to bind a service to an interface 2014-10-27 13:39:36 -07:00
AlmanacConsoleController.php Build AlmanacNetwork 2014-10-17 05:04:02 -07:00
AlmanacController.php Give Almanac generic, custom-field-based properties 2014-11-05 15:27:16 -08:00
AlmanacDeviceController.php Build AlmanacDevice UI 2014-10-17 05:02:14 -07:00
AlmanacDeviceEditController.php Build AlmanacDevice UI 2014-10-17 05:02:14 -07:00
AlmanacDeviceListController.php Build AlmanacDevice UI 2014-10-17 05:02:14 -07:00
AlmanacDeviceViewController.php Build AlmanacInterface 2014-10-17 05:04:24 -07:00
AlmanacInterfaceEditController.php Build AlmanacInterface 2014-10-17 05:04:24 -07:00
AlmanacNetworkController.php Build AlmanacNetwork 2014-10-17 05:04:02 -07:00
AlmanacNetworkEditController.php Build AlmanacNetwork 2014-10-17 05:04:02 -07:00
AlmanacNetworkListController.php Build AlmanacNetwork 2014-10-17 05:04:02 -07:00
AlmanacNetworkViewController.php Build AlmanacNetwork 2014-10-17 05:04:02 -07:00
AlmanacPropertyController.php Give Almanac generic, custom-field-based properties 2014-11-05 15:27:16 -08:00
AlmanacPropertyEditController.php Give Almanac generic, custom-field-based properties 2014-11-05 15:27:16 -08:00
AlmanacServiceController.php Build AlmanacService 2014-10-17 05:01:57 -07:00
AlmanacServiceEditController.php Build AlmanacNetwork 2014-10-17 05:04:02 -07:00
AlmanacServiceListController.php Build AlmanacService 2014-10-17 05:01:57 -07:00
AlmanacServiceViewController.php Give Almanac generic, custom-field-based properties 2014-11-05 15:27:16 -08:00