Homec4science

Restructure Drydock so that blueprints are instances in the DB

Authored by James Rhodes <jrhodes@redpointsoftware.com.au> on Dec 3 2013, 01:09.

Description

Restructure Drydock so that blueprints are instances in the DB

Summary:
(this diff used to be about applying policies to blueprints)

This restructures Drydock so that blueprints are instances in the DB, with an associated implementation class. Thus resources now have a blueprintPHID instead of blueprintClass and DrydockBlueprint becomes a DAO. The old DrydockBlueprint is renamed to DrydockBlueprintImplementation, and the DrydockBlueprint DAO has a blueprintClass column on it.

This now just implements CAN_VIEW and CAN_EDIT policies for blueprints, although they are probably not enforced in all of the places they could be.

Test Plan: Used the create-resource and lease commands. Closed resources and leases in the UI. Clicked around the new and old lists to make sure everything is still working.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Maniphest Tasks: T4111, T2015

Differential Revision: https://secure.phabricator.com/D7638

Details

Committed
James Rhodes <jrhodes@redpointsoftware.com.au>Dec 3 2013, 01:09
Pushed
aubortJan 31 2017, 17:16
Parents
rPHf93c6985ad84: Support Mercurial pretxnchangegroup hooks
Branches
Unknown
Tags
Unknown

Event Timeline

James Rhodes <jrhodes@redpointsoftware.com.au> committed rPHba16df0fed18: Restructure Drydock so that blueprints are instances in the DB (authored by James Rhodes <jrhodes@redpointsoftware.com.au>).Dec 3 2013, 01:09