Bug 2188185

Summary: [RFE] The HTML Report generated for the executed remote execution job should have table cells formatted with style tags assuming pre-formatted text
Product: Red Hat Satellite Reporter: Jayant Bhatia <jbhatia>
Component: ReportingAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.13.0CC: dsinglet
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jayant Bhatia 2023-04-20 03:07:29 UTC
Description of problem:

The HTML Report generated for the successfully executed remote execution job creates a table. The table cells should be formatted with style tags that assume pre-formatted text.


Version-Release number of selected component (if applicable): All Satellite versions including Satellite 6.13


How reproducible: Always


Steps to Reproduce:

1. Ensure remote execution is configured in Satellite. For reference: https://access.redhat.com/solutions/2650071

2. Navigate to Satellite WebUI -> Hosts-> All Hosts (select host) -> Action -> Schedule Remote Execution -> Select Job to run -> Execute any job and ensure the remote execution job is successfully completed.

3. Click on "Create Report" at the right top corner. Select "Output Format" as "HTML" and then "Generate" the report.

Actual results:

The HTML report produced for the results of a Job Template run creates a table. 


Expected results:

It would be better if the table cells were formatted with style tags that assume pre-formatted text. Request to have below tag added to the style section in the HEAD of the generated table within HTML report:

 td { vertical-align: top; text-align: start; font-family: monospace; white-space: pre; }

<html><head><title>Jobs - Invocation report template</title><style>th { background-color: black; color: white; }
table,th,td { border-collapse: collapse; border: 1px solid black; } td { vertical-align: top; text-align: start; font-family: monospace; white-space: pre; }
</style></head>

The formatting/style request only applies to reports generated in HTML format from the Job run.


Additional info: Currently user has to hand edit each HTML report file to add the tag. Having this RFE implemented will give a better user experience and will save the efforts of hand editing each HTML report.

Comment 3 Brad Buckingham 2023-04-20 13:28:36 UTC
*** Bug 2188184 has been marked as a duplicate of this bug. ***