joyent / conch-ui

Web UI for Conch (https://github.com/joyent/conch-api)
2 stars 5 forks source link

datacenter browser is fetching a lot of duplicate data #240

Closed karenetheridge closed 3 years ago

karenetheridge commented 4 years ago

Browse -> room -> rack generates API queries:

This is all before even displaying any detailed information for each device.

And then clicking on an individual device generates:

Hardware product information can be cached - it does not need to be refreshed on every click. There is no high-level device information needed from GET /device/* for the rack-level view - these hits can be deferred -- certainly since the same endpoints are queried again when the device is clicked. The validation_state query can also be deferred until report+validation information is requested via that tab.