equinixmetal-archive/packngo

API bug: link from reserved-IP-block resource to containing project

t0mk opened this issue · 5 comments

t0mk commented

In the IP reserved block API resources (found in the API at /ips/<reserved_block_uuid>) there is no link to the containing project resource. Would it be possible to add one attribute project which would be a href to a project resource? It shouldn't be a problem as all of the reserved blocks are allocated only in a project.

Analogically, there is a project attribute in the device resource (found in /devices/<device_uuid>).

I am quite sure that the IP-reserved-block API resource did have the project attribute before. Is there any reason why it was removed?

As noted in the Terraform issue:

Looking at the CI tests of the provider, the API change that caused this happened around 25th of March 2020.

This has been identified by engineering as a regression, and a PR has been filed. I'll update you @t0mk when the code has been deployed, so that you can reconfirm correct operations. Thanks!

The PR has been applied, and the API results now should have all correct results as from before. @t0mk if you can validate this, I'll mark this as fixed. Thanks!

@mmlb confirms on the Terraform issue that this problem has been resolved; closing. Thanks!

t0mk commented

@vielmetti, thanks I checked the provider acceptance tests of the reserved block resource, they got back to green.