1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 04:02:43 +01:00
phorge-phorge/src/applications/drydock/xaction
epriestley f3f1f9dc57 Allow "drydock.blueprint.edit" to create blueprints
Summary:
Depends on D18848. Ref PHI243. This puts a bit of logic up front to figure out the blueprint type before we actually start editing it.

This implementation is a little messy but it keeps the API clean. Eventually, the implementation could probably go in the TransactionTypes so more code is shared, but I'd like to wait for a couple more of these first.

This capability probably isn't too useful, but just pays down a bit of technical debt from the caveat introduced in D18822.

Test Plan:
  - Created a new blueprint with the API.
  - Tried to create a blueprint without a "type" (got a helpful error).
  - Created and edited blueprints via the web UI.
  - Tried to change the "type" of an existing blueprint (got a helpful error).

Reviewers: amckinley

Reviewed By: amckinley

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Differential Revision: https://secure.phabricator.com/D18849
2018-01-04 10:08:07 -08:00
..
DrydockBlueprintDisableTransaction.php Modularize transactions for Drydock Blueprints 2018-01-04 10:03:44 -08:00
DrydockBlueprintNameTransaction.php Modularize transactions for Drydock Blueprints 2018-01-04 10:03:44 -08:00
DrydockBlueprintTransactionType.php Modularize transactions for Drydock Blueprints 2018-01-04 10:03:44 -08:00
DrydockBlueprintTypeTransaction.php Allow "drydock.blueprint.edit" to create blueprints 2018-01-04 10:08:07 -08:00