Page MenuHomePhabricator

Convert Drydock lease and resource constants to strings
ClosedPublic

Authored by epriestley on Sep 24 2015, 1:11 PM.
Tags
None
Referenced Files
F14471065: D14153.diff
Fri, Dec 27, 1:36 PM
Unknown Object (File)
Mon, Dec 23, 8:14 AM
Unknown Object (File)
Tue, Dec 17, 8:03 PM
Unknown Object (File)
Tue, Dec 17, 8:35 AM
Unknown Object (File)
Wed, Dec 11, 10:42 PM
Unknown Object (File)
Fri, Dec 6, 1:09 PM
Unknown Object (File)
Thu, Dec 5, 8:15 PM
Unknown Object (File)
Sat, Nov 30, 6:32 PM
Subscribers
None

Details

Summary

Ref T9252. Drydock currently uses integer statuses, but there's no reason for this (they don't need to be ordered) and it makes debugging them, working with them, future APIs, etc., more cumbersome.

Switch to string instead.

Also rename STATUS_OPEN to STATUS_ACTIVE and STATUS_CLOSED to STATUS_RELEASED for consistency. This makes resources and leases have more similar states, and gives resource states more accurate names.

Test Plan

Browsed web UI, grepped for changed constants, applied patch, inspected database.

Diff Detail

Repository
rP Phabricator
Branch
drydock7
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 8040
Build 9112: [Placeholder Plan] Wait for 30 Seconds
Build 9111: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Convert Drydock lease and resource constants to strings.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Sep 24 2015, 2:16 PM
This revision was automatically updated to reflect the committed changes.