Skip to content

Cached ecosystem fetch#2123

Closed
ethangreen-dev wants to merge 11 commits intoebkr:developfrom
thunderstore-io:ecosystem-fetch
Closed

Cached ecosystem fetch#2123
ethangreen-dev wants to merge 11 commits intoebkr:developfrom
thunderstore-io:ecosystem-fetch

Conversation

@ethangreen-dev
Copy link
Copy Markdown
Collaborator

Fetches the latest schema from the API on game selection with a 12 hour refresh window (can be tuned or removed if not necessary). Schema is cached locally and update requests make proper use of the 304 response to avoid pulling the schema when it hasnt been updated.

Depends on #2113

ebkr and others added 11 commits April 7, 2026 11:12
…tions post-boot.

- Start with bundled
- Next, load from disk
- Finally, should query live (not done yet)
- Fixed error caused by fetchLatestSchema stub not including valid keys
- Changed getMergedEcosystemPath to be more viable
- Enabled updateLatestMergedEcosystemSchema call in GameSelectionScreen
- Also removed EcosystemSchema class as no longer needed
- Replaced usages of EcosystemSchema getters with reactive equivalents.
Fetches the latest schema from the API on game selection. 12 hour
refresh window, can be tuned / removed based on needs. This uses the 304
response of the API to determine if the remote version has been updated
since the last request. Not a huge difference in performance locally but
it is more efficient on our end.
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