Project

General

Profile

Actions

Bug #35147

closed

Recent jobs card shows failed job when it succeeded

Added by Jeremy Lenz over 2 years ago. Updated over 1 year 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 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?

Actions #2

Updated by Adam Ruzicka almost 2 years ago

  • Bugzilla link set to 2156522
Actions #3

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
Actions #4

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases foreman_remote_execution-9.1.0 added
Actions #5

Updated by Maria Agaphontzev over 1 year ago

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

Updated by Adam Ruzicka over 1 year ago

  • Fixed in Releases foreman_remote_execution-8.3.0 added
Actions #7

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)
Actions

Also available in: Atom PDF