Page MenuHomePhabricator

[drydock/working-copies] Set owner for working copies and show handles on attributes
AbandonedPublic

Authored by hach-que on Jul 23 2015, 1:56 AM.
Tags
None
Referenced Files
F14308607: D13689.id33089.diff
Wed, Dec 18, 12:19 AM
Unknown Object (File)
Tue, Dec 17, 5:23 AM
Unknown Object (File)
Mon, Dec 16, 11:51 PM
Unknown Object (File)
Tue, Dec 10, 1:29 AM
Unknown Object (File)
Fri, Dec 6, 7:47 AM
Unknown Object (File)
Thu, Nov 28, 5:19 PM
Unknown Object (File)
Mon, Nov 25, 3:46 AM
Unknown Object (File)
Thu, Nov 21, 4:56 PM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Maniphest Tasks
T2015: Implement Drydock
Summary

Ref T2015. This makes the working copy blueprints set the owner of leases when they request leases. It also adds some PHID detection to the attribute view of leases and resources, to show handle links when the attribute is likely to contain a PHID.

Test Plan

Viewed pages.

Diff Detail

Event Timeline

hach-que retitled this revision from to [drydock/working-copies] Set owner for working copies and show handles on attributes.
hach-que updated this object.
hach-que edited the test plan for this revision. (Show Details)
hach-que added a reviewer: epriestley.
epriestley edited edge metadata.

I'll upstream the rendering side of this if you can get rid of the code duplication between resources/leases. It's fine to just throw it somewhere like DrydockController for now. You may also want to check that phid_get_type() returns a PHID type instead of TYPE_UNKNOWN, but that isn't too important. I think we have no .phid keys in the upstream anymore. Modern handle rendering can just be $viewer->renderHandle($phid).

It would be nice-to-have to pretty-print lists/dictionaries as JSON, too with PhutilJSON. We have one of these in WorkingCopy resources now.

T9493 discusses doing more formalization of this eventually (defining available attributes, giving them real types, etc).

This revision now requires changes to proceed.Oct 1 2015, 2:57 PM