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
Unknown Object (File)
Fri, Feb 14, 3:41 AM
Unknown Object (File)
Sat, Feb 8, 11:20 PM
Unknown Object (File)
Sat, Feb 8, 11:20 PM
Unknown Object (File)
Sat, Feb 8, 11:20 PM
Unknown Object (File)
Fri, Jan 24, 9:05 AM
Unknown Object (File)
Fri, Jan 24, 9:05 AM
Unknown Object (File)
Fri, Jan 24, 9:05 AM
Unknown Object (File)
Jan 17 2025, 3:16 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.