mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-11-16 17:34:23 +08:00
fix(panel): make self-upgrades durable and observable (#572)
Persist upgrade jobs and progress across backend restarts; preserve Compose identity and database mounts, isolate backups, and fail safely on uncertain recreation. Add frontend recovery handling and lifecycle/permission regressions.
This commit is contained in:
@@ -44,6 +44,7 @@ import type {
|
||||
StorageSummaryApiData,
|
||||
SystemUpgradeCheckApiData,
|
||||
SystemUpgradeRunApiData,
|
||||
SystemUpgradeStatusApiData,
|
||||
SystemUpgradeVersionApiData,
|
||||
} from "./types";
|
||||
|
||||
@@ -317,6 +318,13 @@ export const checkSystemUpgrade = (channel: ReleaseChannel = "stable") =>
|
||||
channel,
|
||||
});
|
||||
|
||||
export const getSystemUpgradeStatus = (jobId?: string) =>
|
||||
Network.post<SystemUpgradeStatusApiData>(
|
||||
"/system/upgrade/status",
|
||||
jobId ? { jobId } : {},
|
||||
{ timeout: 10000 },
|
||||
);
|
||||
|
||||
export const runSystemUpgrade = (
|
||||
version?: string,
|
||||
channel: ReleaseChannel = "stable",
|
||||
|
||||
Reference in New Issue
Block a user