Project

General

Profile

Actions

Bug #28627

closed

Object references instead of values in generated reports

Added by Ondřej Pražák over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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.


Related issues 1 (0 open1 closed)

Related to Katello - Bug #29271: Object references instead of values in generated reportsClosedDominik MatoulekActions
Actions #1

Updated by Ondřej Pražák over 4 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
Actions #2

Updated by Marek Hulán over 4 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.

Actions #3

Updated by Dominik Matoulek about 4 years ago

  • Assignee set to Dominik Matoulek
Actions #4

Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/community-templates/pull/693 added
Actions #5

Updated by Marek Hulán about 4 years ago

  • Pull request https://github.com/Katello/katello/pull/8586 added
Actions #6

Updated by Tomer Brisker about 4 years ago

  • Pull request deleted (https://github.com/Katello/katello/pull/8586)
Actions #7

Updated by Tomer Brisker about 4 years ago

  • Related to Bug #29271: Object references instead of values in generated reports added
Actions #8

Updated by The Foreman Bot about 4 years ago

  • Fixed in Releases 2.1.0 added
Actions #9

Updated by Dominik Matoulek about 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF