Page MenuHomePhabricator

Give Drydock leases a resourcePHID instead of a resourceID
ClosedPublic

Authored by epriestley on Sep 24 2015, 3:28 AM.
Tags
None
Referenced Files
F15395928: D14151.diff
Sun, Mar 16, 10:47 AM
F15392420: D14151.id34196.diff
Sat, Mar 15, 3:07 PM
F15331640: D14151.id34196.diff
Fri, Mar 7, 12:14 PM
F15294351: D14151.id.diff
Wed, Mar 5, 7:10 AM
Unknown Object (File)
Mon, Mar 3, 3:53 PM
Unknown Object (File)
Fri, Feb 21, 10:32 PM
Unknown Object (File)
Fri, Feb 21, 10:18 PM
Unknown Object (File)
Feb 19 2025, 6:43 AM
Subscribers
None

Details

Summary

Ref T9252. Leases currently have a resourceID, but this is a bit nonstandard and generally less flexible than giving them a resourcePHID.

In particular, a resourcePHID is easier to use when rendering interfaces, since you can get handles out of a PHID.

Add a PHID column, copy over all the PHIDs that correspond to existing IDs, then drop the ID column.

Test Plan
  • Browsed web UIs.
  • Inspected database during/after migration.
  • Grepped for resourceID.
  • Allocated a new lease with bin/drydock lease.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Give Drydock leases a resourcePHID instead of a resourceID.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
This revision is now accepted and ready to land.Sep 24 2015, 4:44 AM
This revision was automatically updated to reflect the committed changes.