Repository navigation
Automatic updates: the beta channel can install at any hour - #496
Merged
Merged
Conversation
The maintenance window was one hour a week or a day, so an install on the beta channel took at most one of the several betas a day. On the beta channel the window can now be Any hour: each new beta installs at the next hourly check, at least the chosen number of hours after the last install. - Settings, System, Automatic updates: Any hour (beta) in the Day list, offered only on the beta channel and only by an updater that returns gap_hours; with it the Hour list becomes Hours between installs. - Moving to Stable puts the window back on a day, as the updater does. - The window summary reads "any hour, at least N hours after the last install". - e2e: saving Any hour sends day "any" and gap_hours; Stable never offers it; an older updater never offers it.
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
The maintenance window was one hour a week or a day, so an install on the beta channel took at most one of the several betas a day. With the updater change in CoderHelm/coderhelm-platform (beta channel
day: "any"withgap_hours), an admin can choose Any hour in Settings, System, Automatic updates.Changes
dashboard/src/app/settings/system/page.tsx: the Day list offers Any hour (beta) on the beta channel, only when the updater returnsgap_hours(an older updater has no "any"). With it, the Hour list becomes Hours between installs (1 to 24). Moving to Stable puts the window back on the default day, as the updater does. The window summary reads "any hour, at least N hours after the last install".dashboard/src/lib/api.ts:AutoUpdateSettings.gap_hours, anddaydocuments "any".dashboard/e2e/selfhost.spec.ts: two tests.Verification
day: "any",gap_hours: 4andchannel: "beta"; Stable never offers Any hour; an updater withoutgap_hoursnever offers it. The existing auto-update settings test (desktop and phone) still passes.tsc --noEmit,npm run lint(UI lint, no hosted links).