Bug #28637
closedAn empty report file doesn't show any headers
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1705097
Description of problem:
When you generate a report template, it doesn't show any CSV headers (name, label, severity, etc...) on the top of the file if no results are found. This is just a blank file and is confusing as it makes one think the file wasn't generated correctly, also it may break automation that users build around this.
We should keep the headers on the file even if its blank
Version-Release number of selected component (if applicable):
6.5.0
How reproducible:
Always
Steps to Reproduce:
1.Navigate to Report Templates
2.Click "Generate" for applicable errata and search with a host that has no errata applicable (name = myhost).
3.view blank report
Actual results:
report is blank
Expected results:
report has headers
Additional info:
Updated by The Foreman Bot almost 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Marek Hulán
- Pull request https://github.com/theforeman/community-templates/pull/675 added
Updated by Marek Hulán over 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset community-templates|bc1362bf712971658ac6d63c661f3841ab727046.
Updated by Tomer Brisker over 4 years ago
- Category changed from Statistics to Reporting
Updated by Tomer Brisker over 4 years ago
- Related to Bug #30039: Host - Registered Content Hosts report: "Safemode doesn't allow to access 'report_hraders' on #<Safemode::ScopeObject>" added