Skip to content

Commit

Permalink
Merge pull request #12283 from jainnikhil30/add_forks_to_job_details
Browse files Browse the repository at this point in the history
add forks to the job details
  • Loading branch information
jay-steurer authored May 26, 2022
2 parents 0c4ddc7 + 8ed0543 commit d36befd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions awx/ui/src/screens/Job/JobDetail/JobDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions awx/ui/src/screens/Job/JobDetail/JobDetail.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ describe('<JobDetail />', () => {
);

assertDetail('Job Slice', '0/1');
assertDetail('Forks', '42');

const credentialChip = wrapper.find(
`Detail[label="Credentials"] CredentialChip`
Expand Down
2 changes: 1 addition & 1 deletion awx/ui/src/screens/Job/shared/data.job.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down

0 comments on commit d36befd

Please sign in to comment.