OSU-Sustainability-Office / energy-dashboard

Oregon State University's energy dashboard.
https://dashboard.sustainability.oregonstate.edu
GNU General Public License v3.0
11 stars 0 forks source link

Push Meter Class Changes to Prod #303

Closed solderq35 closed 9 months ago

solderq35 commented 9 months ago

basically this part of dependencies/nodejs/meter.js file bugs out if it can't find the meter class, and allBuildings API call calls all the meters connected to a meter group connected to a building, so that was why allBuildings API call was timing out on prod earlier today.

So I just move meter class changes from https://github.com/OSU-Sustainability-Office/energy-dashboard/pull/302 into prod for now.

image

image

Another approach would be to buildings with "hidden" attribute from the allBuildings API call (e.g. https://github.com/OSU-Sustainability-Office/energy-dashboard/blob/master/backend/dependencies/nodejs/models/building.js#L225), but I don't know if that would make it too difficult to test frontend of newly added buildings locally.