Skip to content

Fix All explorer outages and missing market history crashes - #430

Merged
fordpintomoney merged 2 commits into
pinto-org:mainfrom
freebenweintraub:fix/all-explorer-api-outage
Oct 31, 2026
Merged

fordpintomoney merged 2 commits into
pinto-org:mainfrom
freebenweintraub:fix/all-explorer-api-outage

Conversation

@freebenweintraub

@freebenweintraub freebenweintraub commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

The production /explorer/all page discarded all chart data when the Pinto REST API returned HTTP 502, even though subgraph price history was available. After API service recovery, reloading the page exposed a second failure: Cannot read properties of undefined (reading 'value') when a market token has shorter or missing price history.

This change:

  • Lets subgraph charts render without waiting for APY, Tractor, or inflow results, with an availability notice when an enabled API query fails.
  • Omits unavailable APY and market points instead of plotting missing data as zero.
  • Guards missing Tractor snapshots and market history entries, and reads fallback market season/timestamp metadata from the actual response shape.
  • Preserves legend positions for mixed available/unavailable chart selections.

Validation:

  • Regression tests reproduced the all-or-nothing readiness failure, legend value compaction, and missing market history crash before fixes.
  • yarn test: 116 tests pass across 8 files.
  • yarn format-and-lint: passes (existing advisory diagnostics remain).
  • yarn build: passes (existing dependency annotation and bundle-size warnings remain).
  • Read-only code review: no remaining blocking findings.

Operational context: the API container was separately restarted after its previously failing subgraph dependency recovered. Health, full Tractor/inflow history, and all three APY history windows now return HTTP 200 through season 17028. Historical APY gaps remain outside this frontend change. This PR has not been deployed, and the production All page still needs the frontend fix.

Prepared with OpenAI Codex.

@netlify

netlify Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

👷 Deploy request for pintomoney pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit d18b8cf

@freebenweintraub freebenweintraub changed the title Fix All explorer charts during Pinto API outages Fix All explorer outages and missing market history crashes Oct 31, 2026
@fordpintomoney
fordpintomoney merged commit d31f94d into pinto-org:main Oct 31, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants