$where = Database::getWhere($criteria);
- $obj_record = 'Object.*, Job.Name AS jobname, Job.JobErrors AS joberrors, Job.JobStatus AS jobstatus ';
+ $obj_record = 'Object.*, Job.Name AS jobname, Job.JobErrors AS joberrors, Job.JobStatus AS jobstatus, Client.Name AS client';
if ($view == self::OBJ_RESULT_VIEW_BASIC) {
$obj_record = implode(',', $this->basic_mode_obj_props);
}
$sql = 'SELECT ' . $obj_record . '
FROM Object
-JOIN Job USING (JobId) '
+JOIN Job USING (JobId)
+LEFT JOIN Client USING (ClientId) '
. $where['where'] . $order . $limit . $offset;
$statement = Database::runQuery($sql, $where['params']);
$result = $statement->fetchAll(\PDO::FETCH_OBJ);
"schema": {
"type": "boolean"
}
+ },
+ {
+ "name": "joberrors",
+ "in": "query",
+ "required": false,
+ "description": "Show objects from jobs that contain or that do not contain errors.",
+ "schema": {
+ "type": "boolean"
+ }
}
]
}
"objectcount": {
"description": "Object count",
"type": "integer"
+ },
+ "fileindex": {
+ "description": "Object file index",
+ "type": "integer"
+ },
+ "jobname": {
+ "description": "Object job name",
+ "type": "string"
+ },
+ "joberrors": {
+ "description": "Object job errors",
+ "type": "integer"
+ },
+ "jobstatus": {
+ "description": "Object job status",
+ "type": "integer"
+ },
+ "client": {
+ "description": "Object job client",
+ "type": "string"
}
}
},