add forks to the job details

This commit is contained in:
Nikhil
2022-05-25 20:07:38 +05:30
parent 451767c179
commit 8ed0543b8b
3 changed files with 5 additions and 1 deletions

View File

@@ -361,6 +361,9 @@ function JobDetail({ job, inventorySourceLabels }) {
value={t`True`} value={t`True`}
/> />
)} )}
{typeof job.forks === 'number' && (
<Detail dataCy="forks" label={t`Forks`} value={`${job.forks}`} />
)}
{credential && ( {credential && (
<Detail <Detail

View File

@@ -73,6 +73,7 @@ describe('<JobDetail />', () => {
); );
assertDetail('Job Slice', '0/1'); assertDetail('Job Slice', '0/1');
assertDetail('Forks', '42');
const credentialChip = wrapper.find( const credentialChip = wrapper.find(
`Detail[label="Credentials"] CredentialChip` `Detail[label="Credentials"] CredentialChip`

View File

@@ -104,7 +104,7 @@
"project": 6, "project": 6,
"playbook": "chatty_tasks.yml", "playbook": "chatty_tasks.yml",
"scm_branch": "main", "scm_branch": "main",
"forks": 0, "forks": 42,
"limit": "", "limit": "",
"verbosity": 0, "verbosity": 0,
"extra_vars": "{\"num_messages\": 94}", "extra_vars": "{\"num_messages\": 94}",