Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): background services update themselves #17586

Openmaria-rckswants to merge 3 commits intot3/background-provider-updates fromt3/background-server-updatesopened View on GitHub

Showing 35 changed files with 52 additions and 10 deletions (loading 32).

x
0 of 35 viewed, 35 left
3 additions and 7 deletionsapps/mobile/src/features/settings/SettingsServerControlsRouteScreen.tsxModified
View file
@@ -555,15 +555,11 @@
: !supportsAutomaticUpdates
? "Update older servers to control automatic updates."
: uniform("enableProviderUpdateChecks") === false
- ? "Turn on Provider update checks to update automatically."
- : "Install updates for provider CLIs that support one-click updates on the selected environments while nothing is running."
+ ? "Update background-service installs on the selected environments while nothing is running. Provider CLIs update only while Provider update checks is on."
+ : "Install provider CLI updates, and update background-service installs, on the selected environments while nothing is running."
value={uniform("automaticUpdates")}
- disabled={
- disabledFor("automaticUpdates") ||
- !supportsAutomaticUpdates ||
- uniform("enableProviderUpdateChecks") === false
- }
+ disabled={disabledFor("automaticUpdates") || !supportsAutomaticUpdates}
onValueChange={(value) => write({ automaticUpdates: value })}
</View>
48 additions and 3 deletionsapps/server/src/cli/update.test.tsModified
View file
@@ -3,6 +3,7 @@
import type { ManagedUpdatesPolicy } from "@t3tools/contracts";
import * as HostProcess from "@t3tools/shared/HostProcess";
import * as Duration from "effect/Duration";
+import * as DateTime from "effect/DateTime";
import * as Effect from "effect/Effect";
import * as Exit from "effect/Exit";