Project

General

Profile

Actions

Bug #39352

open

New job invocation page ignores remote_execution_job_invocation_report_template setting

Added by Adam Ruzicka 3 months ago. Updated about 1 month ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
-
Category:
Foreman
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

The new React-based job invocation detail page hardcodes the report template name Job - Invocation Report instead of looking up the remote_execution_job_invocation_report_template setting.

Steps to Reproduce:
1. Change the remote_execution_job_invocation_report_template setting to a custom report template name
2. Navigate to a job invocation detail page (new React UI)
3. Observe that the report button still references the Job - Invocation Report template, ignoring the setting

Root Cause:
The old UI helper (app/helpers/remote_execution_helper.rb:245-249) uses Setting['remote_execution_job_invocation_report_template']. The new React code (webpack/JobInvocationDetail/JobInvocationToolbarButtons.js:68-71) hardcodes the name.

The fix should read the setting value and use the report template API's search to find the template by name, rather than fetching all templates and filtering client-side.

Actions #1

Updated by Adam Ruzicka 3 months ago

  • Red Hat JIRA set to SAT-45684
Actions #2

Updated by The Foreman Bot about 1 month ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/1045 added
Actions

Also available in: Atom PDF