From 8ed0543b8bc17bb8eabdda079f0852d84b03fe37 Mon Sep 17 00:00:00 2001 From: Nikhil Date: Wed, 25 May 2022 20:07:38 +0530 Subject: [PATCH] add forks to the job details --- awx/ui/src/screens/Job/JobDetail/JobDetail.js | 3 +++ awx/ui/src/screens/Job/JobDetail/JobDetail.test.js | 1 + awx/ui/src/screens/Job/shared/data.job.json | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/awx/ui/src/screens/Job/JobDetail/JobDetail.js b/awx/ui/src/screens/Job/JobDetail/JobDetail.js index bcc13f0d08..82c0166aec 100644 --- a/awx/ui/src/screens/Job/JobDetail/JobDetail.js +++ b/awx/ui/src/screens/Job/JobDetail/JobDetail.js @@ -361,6 +361,9 @@ function JobDetail({ job, inventorySourceLabels }) { value={t`True`} /> )} + {typeof job.forks === 'number' && ( + + )} {credential && ( ', () => { ); assertDetail('Job Slice', '0/1'); + assertDetail('Forks', '42'); const credentialChip = wrapper.find( `Detail[label="Credentials"] CredentialChip` diff --git a/awx/ui/src/screens/Job/shared/data.job.json b/awx/ui/src/screens/Job/shared/data.job.json index c67083e98e..b8560de2e4 100644 --- a/awx/ui/src/screens/Job/shared/data.job.json +++ b/awx/ui/src/screens/Job/shared/data.job.json @@ -104,7 +104,7 @@ "project": 6, "playbook": "chatty_tasks.yml", "scm_branch": "main", - "forks": 0, + "forks": 42, "limit": "", "verbosity": 0, "extra_vars": "{\"num_messages\": 94}",