Initial
This commit is contained in:
@@ -453,6 +453,19 @@ export function camelJobLog(row) {
|
||||
}
|
||||
|
||||
export function camelJobOutput(row) {
|
||||
const hostSuccessCount = row.host_success_count || 0;
|
||||
const hostFailedCount = row.host_failed_count || 0;
|
||||
const hostSkippedCount = row.host_skipped_count || 0;
|
||||
const hostCanceledCount = row.host_canceled_count || 0;
|
||||
const outputStatus = hostSuccessCount > 0
|
||||
? 'completed'
|
||||
: hostFailedCount > 0
|
||||
? 'failed'
|
||||
: hostCanceledCount > 0
|
||||
? 'canceled'
|
||||
: hostSkippedCount > 0
|
||||
? 'skipped'
|
||||
: row.job_status || row.status || '';
|
||||
return {
|
||||
id: row.id,
|
||||
jobId: row.job_id,
|
||||
@@ -467,6 +480,12 @@ export function camelJobOutput(row) {
|
||||
scriptId: row.script_id || null,
|
||||
scriptName: row.script_name || null,
|
||||
jobStatus: row.job_status || row.status || '',
|
||||
outputStatus,
|
||||
hostTotalCount: row.host_total_count || 0,
|
||||
hostSuccessCount,
|
||||
hostFailedCount,
|
||||
hostSkippedCount,
|
||||
hostCanceledCount,
|
||||
triggeredBy: row.triggered_by || null,
|
||||
createdAt: row.created_at,
|
||||
updatedAt: row.updated_at,
|
||||
|
||||
Reference in New Issue
Block a user