Bug #28627
closedObject references instead of values in generated reports
Description
Description of problem:
The HTML output format is returning the object itself not the value of the object for Host Collections and Products in Entitlement report.
Subscriptions column in Registered hosts report is also affected.
Steps to Reproduce:
1. Go to monitor -> Report Templates -> Entitlements -> Generate
2. Select the Output format of HTML
3. Click submit and download the report
Actual results:
Host Collections:
#<Katello::HostCollection::ActiveRecord_Associations_CollectionProxy:0x0000000021043cd0>
Expected results: The value of the object.
Additional info: This occurs through the UI, CLI, and API.
Updated by Ondřej Pražák almost 5 years ago
- Subject changed from Object references instead of values in generated reports to Object references instead of values in generated reports
- Category changed from Statistics to Templates
Updated by Marek Hulán almost 5 years ago
we need to be extra careful with this, even if the object would render to string, it would be kept in memory during rendering, so we should make sure we only store generic types in report_row macro (e.g. calling .to_s or map { |o| o.name } is a good idea.
Updated by The Foreman Bot over 4 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/community-templates/pull/693 added
Updated by Marek Hulán over 4 years ago
- Pull request https://github.com/Katello/katello/pull/8586 added
Updated by Tomer Brisker over 4 years ago
- Pull request deleted (
https://github.com/Katello/katello/pull/8586)
Updated by Tomer Brisker over 4 years ago
- Related to Bug #29271: Object references instead of values in generated reports added
Updated by Dominik Matoulek over 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset community-templates|aa439a681f840030b995fd10db94cb0aec4fd934.