Bug #39352
openNew job invocation page ignores remote_execution_job_invocation_report_template setting
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.
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