fix: Upgrade Status renders on data error
High Level Overview of Change
The VHS is experiencing an intermittent issue with CORS header that causes occasional disruption in data fetching for the Upgrade Status chart. This PR will add checks so to ensure the chart renders even when there's a disruption.
Type of Change
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Refactor (non-breaking change that only restructures code)
- [ ] Tests (You added tests for code that already exists, or your new feature included in this PR)
- [ ] Documentation Updates
- [ ] Translation Updates
- [ ] Release
I will add test cases
@mvadari I have updated the logic. Aggregation for nodes and validators will be handled separately (in case one fails, it would still update the other).
Not sure why npm run test:ci succeed locally but fails on GitHub
Not sure why
npm run test:cisucceed locally but fails on GitHub
Usually due to flakiness or something, or missing an async/await somewhere.