Most of the stats app data come from the /v1/dashboard-data endpoint. This endpoint poorly handle exceptions so if any error occurs, the entire dashboard breaks. In this specific case, only the "Bonded token" loading failed, but all the tiles are missing.
Proposed solution
We need to make sure that the endpoint is resilient and won't break if some of the data loading fail:
[ ] In the /v1/dashboard-data endpoint. Make sure that if anything fail to load, the rest is still returned
[ ] In the getChainStats function. Make sure that if a query fail, the others are still returned
[ ] In the stats app. Make sure that if a row or tile data is missing from the api response, the others are still rendered
Improve stats app resiliency
Problem
Most of the stats app data come from the
/v1/dashboard-data
endpoint. This endpoint poorly handle exceptions so if any error occurs, the entire dashboard breaks. In this specific case, only the "Bonded token" loading failed, but all the tiles are missing.Proposed solution
We need to make sure that the endpoint is resilient and won't break if some of the data loading fail:
/v1/dashboard-data
endpoint. Make sure that if anything fail to load, the rest is still returnedgetChainStats
function. Make sure that if a query fail, the others are still returned