Repository navigation
Settings, System: Check for updates, and Update installs the newest release - #310
Merged
Merged
Conversation
…talls the newest release The Version section shows when the install last read GitHub's release list and a Check for updates button (POST /api/system/releases/check). Update now sends no version, so the updater reads the list first and installs the newest release at that moment. A newer release GitHub doesn't list yet shows as such, with no Update button for an older one.
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.
Summary
Settings, System now says when the install last read GitHub's release list and has a Check for updates button to read it now. Pressing Update always installs the newest release at that moment. Needs the gateway route and updater changes in CoderHelm/coderhelm-platform#462.
Changes
releases.fetched_at) and a small Check for updates button. It callsPOST /api/system/releases/check(api.checkReleases), which the updater rate-limits to one read every 30 seconds, and the page then shows the fresh status. If the last read failed, a line says "The last check couldn't reach GitHub, so this is the list from then."behind: if latest.json names a release that GitHub's list doesn't show yet, the page says "v1.3.0 is out" and shows no Update button for an older release.SystemVersion.releasestype (ReleaseFreshness).Verification
ui-lint,no-hosted-links,tsc --noEmit,next build: clean.E2E_STATIC=1 playwright test e2e/selfhost.spec.ts e2e/models-switch.spec.ts: 51 passed. The new tests run on desktop and phone: