Repository navigation
api | web | docs: add a check for updates button to the account menu - #20
Merged
Merged
Conversation
New releases could take up to 15 minutes to show up in Settings: the release list is cached in Redis for 10 minutes, and the raw GitHub CDN adds about 5 more. To work around this, the cache key was deleted by hand from Redis. - System admins get a "Check for updates" row above the version in the account menu. It shows a spinner while checking, then "Up to date", "Update available" or "Check failed". Clicking "Update available" opens the updates page. - A new POST /system/update/check endpoint skips the Redis cache, fetches the release list again and stores the result. If it was refreshed less than 10 seconds ago, it serves the cached list so repeated clicks don't use up the GitHub API quota. - Release metadata is now read from the main branch through the GitHub contents API instead of the raw CDN, so a release shows up as soon as its metadata is pushed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes UNB-417.
A new release could take up to 15 minutes to show up in Settings. The release list is cached in Redis for 10 minutes, and the raw GitHub CDN adds about 5 more. To apply releases right after tagging,
unbind-updater:updateswas deleted from the platform Redis by hand nine times between 2026-10-12 and 2026-10-14.POST /system/update/checkendpoint (system admin only) skips the Redis cache, fetches the release list again and stores the result. If the list was refreshed less than 10 seconds ago, it returns the cached list so repeated clicks don't use up the unauthenticated GitHub API quota. If GitHub can't be reached, it returns a 502 and leaves the existing cache alone.Testing