Recent jobs card shows failed job when it succeeded
I have a recurring job that runs on all hosts.
The job succeeded for my host 'rhel8b', but failed on other hosts.
On the 'Recent jobs' card in the new host detail page, I would expect it to say 'succeeded' because that's what's relevant to my host. But it says 'failed' because the overall job status is failed.
Is it possible to have the 'Recent jobs' card show the status for my specific host? That's what I would expect, because I am viewing the details of a specific host.
Updated by Adam Ruzicka about 1 year ago
Per-host statuses are exposed only in Api::V2::JobInvocationsController#show. Getting them is somewhat costly so I would advise against exposing this kind of information in #index. Maybe having a specialized (and optimized) endpoint for this would be a good thing?
Updated by Maria Agaphontzev 7 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_plugin|2a8a05f38c40946290365bf4d5ad1a131944fd71.