You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that assignments and assignments.assigned_to includes are not necessary for this purpose. Countable href objects are returned in an assignments list without explicit includes.
We see further proof of this when comparing metal-cli commands (debug output reveals that metal-cli nor packngo are adding unsolicited include values):
$ metal ips get -o json | jq '.[].assignments|length'| sort -n | uniq -c
29 0
1 1
2 3
The text was updated successfully, but these errors were encountered:
displague
changed the title
This change increased the response time and size for IP address lists fetched from the EM API. We'll want to revert this.
IP Address Assignments and AssignedTo fields are unused response bloat
Nov 2, 2022
In #354, a change in EM API
include
fields to add details about the IP Addresses resulted in a large increase in the response time and size for IP address list responses for large projects.We'll want to revert this.
In CAPP, the resulting
Assignments
field in the IP address lists is only used inlen()
calls to determine if an address is in use.cluster-api-provider-packet/controllers/packetmachine_controller.go
Lines 327 to 331 in a6d3608
It appears that
assignments
andassignments.assigned_to
includes are not necessary for this purpose. Countablehref
objects are returned in anassignments
list without explicit includes.We see further proof of this when comparing
metal-cli
commands (debug output reveals that metal-cli nor packngo are adding unsolicitedinclude
values):Originally posted by @displague in #354 (comment)
The text was updated successfully, but these errors were encountered: