Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@
key="foreman-puppet-metrics-table"
>
<Tbody>
<Tr>
<Tr ouiaId="foreman-puppet-metrics-row-1">
{createPuppetMetricsTableElement(__('Failed'), metrics.failed)}
{createPuppetMetricsTableElement(__('Changed'), metrics.changed)}
{createPuppetMetricsTableElement(__('Scheduled'), metrics.scheduled)}
</Tr>
<Tr>
<Tr ouiaId="foreman-puppet-metrics-row-2">
{createPuppetMetricsTableElement(
__('Failed to start'),
metrics.failed_to_start
Expand All @@ -120,7 +120,7 @@
metrics.corrective_change
)}
</Tr>
<Tr>
<Tr ouiaId="foreman-puppet-metrics-row-3">
{createPuppetMetricsTableElement(__('Skipped'), metrics.skipped)}
{createPuppetMetricsTableElement(
__('Out of sync'),
Expand Down Expand Up @@ -148,7 +148,7 @@

useEffect(() => {
getLastReport();
}, [hostName, reports]);

Check warning on line 151 in webpack/src/Extends/Host/PuppetTab/SubTabs/Reports/components/ConfigStatusCard/index.js

View workflow job for this annotation

GitHub Actions / JavaScript / Foreman develop Ruby 2.7 and Node 18

React Hook useEffect has a missing dependency: 'getLastReport'. Either include it or remove the dependency array

const { metrics } = useSelector(state =>
selectAPIResponse(state, FOREMAN_PUPPET_LAST_REPORT_KEY)
Expand Down