joyent / conch-api

Datacenter build and management service
Mozilla Public License 2.0
22 stars 11 forks source link

fixes for builds and completed state and production phase #1048

Closed karenetheridge closed 4 years ago

karenetheridge commented 4 years ago

do not permit adding or creating a device or a rack to/in a completed build

in endpoints:

closes #1044.


add ?include_completed option to GET /build

It defaults to false, so GET /build with no query parameters will return uncompleted builds only.

closes #1046.


Mark all existing builds (with devices that have reported) as "completed"

We use the timestamp on the latest associated device report (for devices directly in the build, or located in a rack in the build) to determine the completed time.

closes #1047.


do not permit adding device to a build when phase >= production

in endpoints:

closes #1049.