Merge pull request #7631 from jakemcdermott/fix-5236

Use summary job_type on host list

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-07-16 19:40:36 +00:00
committed by GitHub

View File

@@ -30,11 +30,6 @@ const DataListAction = styled(_DataListAction)`
function HostListItem({ i18n, host, isSelected, onSelect, detailUrl }) {
const labelId = `check-action-${host.id}`;
const recentPlaybookJobs = host.summary_fields.recent_jobs.map(job => ({
...job,
type: 'job',
}));
return (
<DataListItem key={host.id} aria-labelledby={labelId} id={`${host.id}`}>
<DataListItemRow>
@@ -52,7 +47,7 @@ function HostListItem({ i18n, host, isSelected, onSelect, detailUrl }) {
</Link>
</DataListCell>,
<DataListCell key="recentJobs">
<Sparkline jobs={recentPlaybookJobs} />
<Sparkline jobs={host.summary_fields.recent_jobs} />
</DataListCell>,
<DataListCell key="inventory">
{host.summary_fields.inventory && (