Merge pull request #12283 from jainnikhil30/add_forks_to_job_details

add forks to the job details
This commit is contained in:
Jessica Steurer 2022-05-26 18:03:29 -03:00 committed by GitHub
commit d36befd9ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

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

View File

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

View File

@ -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}",