From: Marcin Haba Date: Wed, 14 Jun 2023 14:07:56 +0000 (+0200) Subject: baculum: Add objectsize property to objects overview endpoint X-Git-Tag: Release-13.0.4~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=642a20cf50623a88cae5b7a471b80304418b1af5;p=thirdparty%2Fbacula.git baculum: Add objectsize property to objects overview endpoint --- diff --git a/gui/baculum/protected/API/Modules/ObjectManager.php b/gui/baculum/protected/API/Modules/ObjectManager.php index 25218af83..f035a452c 100644 --- a/gui/baculum/protected/API/Modules/ObjectManager.php +++ b/gui/baculum/protected/API/Modules/ObjectManager.php @@ -236,6 +236,7 @@ LEFT JOIN Client USING (ClientId) ' ObjectCategory AS objectcategory, ObjectStatus AS objectstatus, ObjectSource AS objectsource, + ObjectSize AS objectsize, Path AS path, Job.JobStatus AS jobstatus FROM Object @@ -295,6 +296,7 @@ LEFT JOIN Client USING (ClientId) ' ObjectCategory AS objectcategory, ObjectStatus AS objectstatus, ObjectSource AS objectsource, + ObjectSize AS objectsize, Path AS path, JobStatus AS jobstatus FROM Object @@ -318,6 +320,7 @@ LEFT JOIN Client USING (ClientId) ' objectcategory, objectstatus, objectsource, + objectsize, path, jobstatus FROM ' . $objects_tname1 . ' JOIN ( diff --git a/gui/baculum/protected/API/openapi_baculum.json b/gui/baculum/protected/API/openapi_baculum.json index 6febb9cc2..274f27521 100644 --- a/gui/baculum/protected/API/openapi_baculum.json +++ b/gui/baculum/protected/API/openapi_baculum.json @@ -8635,6 +8635,10 @@ "type": "string", "description": "Object source" }, + "objectsize": { + "type": "string", + "description": "Object size" + }, "path": { "type": "string", "description": "Path"