]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Add job type property to objects overview endpoint
authorMarcin Haba <marcin.haba@bacula.pl>
Wed, 14 Jun 2023 13:29:14 +0000 (15:29 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Mon, 3 Jul 2023 08:46:57 +0000 (10:46 +0200)
gui/baculum/protected/API/Modules/ObjectManager.php
gui/baculum/protected/API/openapi_baculum.json

index 1c91949eaef0fdd00eec1557d4d76fad11c20fbf..25218af83e7218952666b0cff3be53f03ac7b31c 100644 (file)
@@ -227,6 +227,7 @@ LEFT JOIN Client USING (ClientId) '
                                        Client.ClientId AS clienid,
                                        Client.Name     AS client,
                                        Job.Name        AS job,
+                                       Job.Type        AS type,
                                        Job.Level       AS level,
                                        ObjectId        AS objectid,
                                        Object.JobId    AS jobid,
@@ -252,6 +253,7 @@ LEFT JOIN Client USING (ClientId) '
                                                        Client.ClientId AS clienid,
                                                        Client.Name     AS client,
                                                        JobId           AS jobid,
+                                                       Job.Type        AS type,
                                                        Job.Level       AS level,
                                                        JobTDate        AS jobtdate,
                                                        StartTime       AS starttime,
@@ -284,6 +286,7 @@ LEFT JOIN Client USING (ClientId) '
                                                Client.ClientId AS clienid,
                                                Client.Name     AS client,
                                                Job.Name        AS Job,
+                                               Job.Type        AS type,
                                                Job.Level       AS level,
                                                ObjectId        AS objectid,
                                                Object.JobId    AS jobid,
@@ -307,6 +310,7 @@ LEFT JOIN Client USING (ClientId) '
                                                objectname,
                                                client,
                                                job,
+                                               type,
                                                objectid,
                                                jobid,
                                                AAA.jobtdate,
@@ -336,6 +340,7 @@ LEFT JOIN Client USING (ClientId) '
                                                Client.ClientId AS clienid,
                                                Client.Name     AS client,
                                                JobId           AS jobid,
+                                               Job.Type        AS type,
                                                Job.Level       AS level,
                                                JobTDate        AS jobtdate,
                                                StartTime       AS starttime,
@@ -358,6 +363,7 @@ LEFT JOIN Client USING (ClientId) '
                                                clienid,
                                                client,
                                                jobid,
+                                               type,
                                                level,
                                                AAA.jobtdate,
                                                starttime,
index 814d305b058da13f94785becf77a8f2bb95d1029..6febb9cc2e543e28d2b49bcd5c2155357775726b 100644 (file)
                                                                                                                                                                "type": "string",
                                                                                                                                                                "description": "Job name"
                                                                                                                                                        },
+                                                                                                                                                       "type": {
+                                                                                                                                                               "type": "string",
+                                                                                                                                                               "description": "Job type"
+                                                                                                                                                       },
                                                                                                                                                        "level": {
                                                                                                                                                                "type": "string",
                                                                                                                                                                "description": "Job level"
                                                                                                                                                                "type": "string",
                                                                                                                                                                "description": " Job identifier"
                                                                                                                                                        },
+                                                                                                                                                       "type": {
+                                                                                                                                                               "type": "string",
+                                                                                                                                                               "description": "Job type"
+                                                                                                                                                       },
                                                                                                                                                        "level": {
                                                                                                                                                                "type": "string",
                                                                                                                                                                "description": "Job level"