Bug #35147
closedRecent jobs card shows failed job when it succeeded
Description
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.
Files
Updated by Adam Ruzicka over 2 years 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 The Foreman Bot over 1 year ago
- Status changed from New to Ready For Testing
- Assignee set to Maria Agaphontzev
- Pull request https://github.com/theforeman/foreman_remote_execution/pull/792 added
Updated by The Foreman Bot over 1 year ago
- Fixed in Releases foreman_remote_execution-9.1.0 added
Updated by Maria Agaphontzev over 1 year ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_plugin|2a8a05f38c40946290365bf4d5ad1a131944fd71.
Updated by Adam Ruzicka over 1 year ago
- Fixed in Releases foreman_remote_execution-8.3.0 added
Updated by Adam Ruzicka over 1 year ago
- Fixed in Releases foreman_remote_execution-10.0.0 added
- Fixed in Releases deleted (
foreman_remote_execution-9.1.0)