1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-09 21:38:29 +01:00
phorge-phorge/src/applications/drydock/query
epriestley 5362d3366c Modernize Drydock Query + Attach code
Summary:
Ref T9253. Some of the Drydock code is pretty old. This applies standard modernizations to it:

  - Modernize Query classes to use stuff like `buildWhereClauseParts()` and `loadStandardPage()`.
  - Modernize all the getX() / attachX() stuff. In particular:
    - Require and attach implementations to Blueprints.
    - Require and attach Blueprints to Resources.
    - BlueprintImplementations are now always unique per-Blueprint so they can store/cache state if they want without running over one another.
    - BlueprintImplementations are now passed a `$blueprint`, like other similar APIs (this could go various ways but I generally like this as a balance of concerns).

NOTE: This probably doesn't run on its own, I'm just trying to split the next diff (core allocator stuff) up a bit and these pieces are all pretty standard.

Test Plan:
  - Not much; see next revision or two.
  - Clicked around Resource and Blueprint lists.

Reviewers: chad, hach-que

Reviewed By: chad, hach-que

Maniphest Tasks: T9253

Differential Revision: https://secure.phabricator.com/D14113
2015-09-21 04:42:04 -07:00
..
DrydockBlueprintQuery.php Modernize Drydock Query + Attach code 2015-09-21 04:42:04 -07:00
DrydockBlueprintSearchEngine.php [Redesign] PhabricatorApplicationSearchResultView 2015-06-19 11:46:20 +01:00
DrydockBlueprintTransactionQuery.php Add transactions to Drydock blueprint editing 2014-01-09 12:19:54 -08:00
DrydockLeaseQuery.php Modernize Drydock Query + Attach code 2015-09-21 04:42:04 -07:00
DrydockLeaseSearchEngine.php Fix Drydock lease list view in redesign branch 2015-06-25 06:54:46 -07:00
DrydockLogQuery.php Fix issues where Drydock queries didn't work correctly with empty arrays 2015-08-24 21:23:04 +10:00
DrydockLogSearchEngine.php Fix issues where Drydock queries didn't work correctly with empty arrays 2015-08-24 21:23:04 +10:00
DrydockQuery.php Rename PhabricatorApplication subclasses 2014-07-23 10:03:09 +10:00
DrydockResourceQuery.php Modernize Drydock Query + Attach code 2015-09-21 04:42:04 -07:00
DrydockResourceSearchEngine.php [Redesign] PhabricatorApplicationSearchResultView 2015-06-19 11:46:20 +01:00