Project

General

Profile

Actions

Bug #35147

closed

Recent jobs card shows failed job when it succeeded

Added by Jeremy Lenz about 1 year ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
Usability
Difficulty:
Triaged:
No
Found in Releases:

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

failed-recent-jobs.png View failed-recent-jobs.png 90 KB Jeremy Lenz, 06/30/2022 03:05 PM
Run-cat-etc-hosts.png View Run-cat-etc-hosts.png 140 KB Jeremy Lenz, 06/30/2022 03:05 PM
Actions #1

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?

Actions #2

Updated by Adam Ruzicka 7 months ago

  • Bugzilla link set to 2156522
Actions #3

Updated by The Foreman Bot 7 months 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
Actions #4

Updated by The Foreman Bot 7 months ago

  • Fixed in Releases foreman_remote_execution-9.1.0 added
Actions #5

Updated by Maria Agaphontzev 7 months ago

  • Status changed from Ready For Testing to Closed
Actions #6

Updated by Adam Ruzicka 5 months ago

  • Fixed in Releases foreman_remote_execution-8.3.0 added
Actions #7

Updated by Adam Ruzicka 4 months ago

  • Fixed in Releases foreman_remote_execution-10.0.0 added
  • Fixed in Releases deleted (foreman_remote_execution-9.1.0)
Actions

Also available in: Atom PDF