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
Unknown Object (File)
Wed, Apr 24, 11:58 PM
Unknown Object (File)
Mon, Apr 15, 10:07 AM
Unknown Object (File)
Thu, Apr 11, 8:15 AM
Unknown Object (File)
Sat, Mar 30, 9:41 PM
Unknown Object (File)
Mar 19 2024, 7:02 AM
Unknown Object (File)
Mar 18 2024, 6:33 AM
Unknown Object (File)
Feb 14 2024, 9:39 AM
Unknown Object (File)
Feb 11 2024, 7:25 AM
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