From fb2f7791fd745f972af4fa5772192f1ec425364b Mon Sep 17 00:00:00 2001 From: Charles GTE Date: Thu, 25 Jun 2026 14:42:42 +0200 Subject: [PATCH 1/2] fix: size in restoration agent helper --- app/api/agent/[agentId]/status/helpers.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/api/agent/[agentId]/status/helpers.ts b/app/api/agent/[agentId]/status/helpers.ts index 9b32bf1c..794bdee2 100644 --- a/app/api/agent/[agentId]/status/helpers.ts +++ b/app/api/agent/[agentId]/status/helpers.ts @@ -18,7 +18,7 @@ const log = logger.child({module: "api/agent/status/helpers"}); export async function handleDatabases(body: Body, agent: Agent, lastContact: Date, settings: Setting) { const databasesResponse = []; - const formatDatabase = (database: DatabaseWith, backupAction: boolean, restoreAction: boolean, UrlBackup: string | null, storages: PingDatabaseStorageChannels[], urlMeta: string | null) => ({ + const formatDatabase = (database: DatabaseWith, backupAction: boolean, restoreAction: boolean, UrlBackup: string | null, storages: PingDatabaseStorageChannels[], urlMeta: string | null, backupSize: number | null) => ({ generatedId: database.agentDatabaseId, dbms: database.dbms, storages: storages, @@ -31,7 +31,8 @@ export async function handleDatabases(body: Body, agent: Agent, lastContact: Dat restore: { action: restoreAction, file: UrlBackup, - metaFile: urlMeta + metaFile: urlMeta, + size: backupSize }, }, }); @@ -49,6 +50,7 @@ export async function handleDatabases(body: Body, agent: Agent, lastContact: Dat let restoreAction: boolean = false let urlBackup: string | null = null; let urlMeta: string | null = null + let backupSize: number | null = null if (!existingDatabase) { if (!isUuidv4(db.generatedId)) { @@ -90,7 +92,7 @@ export async function handleDatabases(body: Body, agent: Agent, lastContact: Dat const storages = await getDatabaseStorageChannels(databaseCreated.id) - databasesResponse.push(formatDatabase(databaseCreated, backupAction, restoreAction, urlBackup, storages, null)); + databasesResponse.push(formatDatabase(databaseCreated, backupAction, restoreAction, urlBackup, storages, null, null)); } } else { @@ -180,6 +182,7 @@ export async function handleDatabases(body: Body, agent: Agent, lastContact: Dat if (result.success) { urlBackup = result.url ?? null; urlMeta = resultMeta.url ?? null + backupSize = restoration.backupStorage.size } else { await dbClient .update(drizzleDb.schemas.restoration) @@ -205,7 +208,7 @@ export async function handleDatabases(body: Body, agent: Agent, lastContact: Dat .where(eq(drizzleDb.schemas.restoration.id, restoration.id)); } const storages = await getDatabaseStorageChannels(databaseUpdated.id) - databasesResponse.push(formatDatabase(databaseUpdated, backupAction, restoreAction, urlBackup, storages, urlMeta)); + databasesResponse.push(formatDatabase(databaseUpdated, backupAction, restoreAction, urlBackup, storages, urlMeta, backupSize)); } } return databasesResponse; From 40d3228db628f9ffff741c9af5b7068e383dff72 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 25 Jun 2026 12:57:03 +0000 Subject: [PATCH 2/2] chore: release 1.20.2 --- CITATION.cff | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index fc01c94a..a371edb0 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -33,5 +33,5 @@ keywords: - web-ui - agent license: Apache-2.0 -version: 1.20.1 +version: 1.20.2 date-released: '2026-03-02' diff --git a/package.json b/package.json index bf428a24..89de947f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "portabase", - "version": "1.20.1", + "version": "1.20.2", "private": true, "scripts": { "dev": "next dev --turbopack -p 8887",