Bug #28627
closed
Object references instead of values in generated reports
Added by Ondřej Pražák almost 5 years ago.
Updated over 4 years ago.
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.
- 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
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.
- Assignee set to Dominik Matoulek
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/community-templates/pull/693 added
- Pull request https://github.com/Katello/katello/pull/8586 added
- Pull request deleted (
https://github.com/Katello/katello/pull/8586)
- Related to Bug #29271: Object references instead of values in generated reports added
- Fixed in Releases 2.1.0 added
- Status changed from Ready For Testing to Closed
Also available in: Atom
PDF