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)
Tue, Apr 16, 9:03 AM
Unknown Object (File)
Fri, Apr 12, 5:32 PM
Unknown Object (File)
Sun, Apr 7, 3:27 PM
Unknown Object (File)
Mar 4 2024, 6:37 PM
Unknown Object (File)
Feb 24 2024, 11:57 AM
Unknown Object (File)
Feb 9 2024, 6:51 AM
Unknown Object (File)
Feb 8 2024, 5:24 PM
Unknown Object (File)
Jan 26 2024, 12:46 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.