Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1477341

Summary: UI CSV Export of facts does not include nested values
Product: Red Hat Satellite Reporter: Perry Gagne <pgagne>
Component: FactAssignee: Sebastian Gräßl <sgraessl>
Status: CLOSED ERRATA QA Contact: Perry Gagne <pgagne>
Severity: medium Docs Contact:
Priority: high    
Version: 6.3.0CC: bbuckingham, egolov, ehelms, mhulan, tstrachota
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-1.15.4.10-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 17:30:01 UTC 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:
Attachments:
Description Flags
Screen shot of facts page with nested valuies none

Description Perry Gagne 2017-08-01 20:28:01 UTC
Created attachment 1307775 [details]
Screen shot of facts page with nested valuies

Description of problem:
When using UI CSV export of facts. The values of columns with nested fields is empty for example: 
```
ronda-grams.lab.eng.rdu2.redhat.com,dmi,,Redhat,2017-07-20 18:29:07 UTC
```
See attached screen shot for page. 
Although it is shown as empty on the ui page, we probably should show something in the CSV. 

For example, we could build a json-like dict by traversing down the tree:
```
 ronda-grams.lab.eng.rdu2.redhat.com,{"dmi::bios::version": "0.5.1", "dmi::bios::rom_size":"64 KB", ...},...
```


Version-Release number of selected component (if applicable): 6.3.0

Comment 3 Tomer Brisker 2017-08-09 13:55:15 UTC
Created redmine issue http://projects.theforeman.org/issues/20541 from this bug

Comment 4 Satellite Program 2017-10-17 08:13:52 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20541 has been resolved.

Comment 7 Perry Gagne 2017-11-07 20:15:35 UTC
Verified fix in 6.3.0 snap 24.

When exports nested facts appear as follows:

Host,Fact Name,Value,Origin,Updated At
saul-provitt.lab.eng.rdu2.redhat.com,dmi::system::uuid,063ae797-7b9e-460b-9f10-804932e23906,Redhat,2017-11-01 20:04:58 UTC
saul-provitt.lab.eng.rdu2.redhat.com,proc_cpuinfo::common::cpuid_level,4,Redhat,2017-11-01 20:04:58 UTC
saul-provitt.lab.eng.rdu2.redhat.com,distribution::name,Red Hat Enterprise Linux Server,Redhat,2017-11-01 20:04:58 UTC
saul-provitt.lab.eng.rdu2.redhat.com,dmi::memory::type,RAM,Redhat,2017-11-01 20:04:58 UTC
saul-provitt.lab.eng.rdu2.redhat.com,proc_cpuinfo::common::siblings,1,Redhat,2017-11-01 20:04:58 UTC
saul-provitt.lab.eng.rdu2.redhat.com,dmi::processor::family,Other,Redhat,2017-11-01 20:04:58 UTC
saul-provitt.lab.eng.rdu2.redhat.com,dmi::chassis::manufacturer,Bochs,Redhat,2017-11-01 20:04:58 UTC
saul-provitt.lab.eng.rdu2.redhat.com,virt::host_type,kvm,Redhat,2017-11-01 20:04:58 UTC
saul-provitt.lab.eng.rdu2.redhat.com,lscpu::l1i_cache,32K,Redhat,2017-11-01 20:04:58 UTC
saul-provitt.lab.eng.rdu2.redhat.com,dmi::chassis::security_status,Unknown,Redhat,2017-11-01 20:04:58 UTC

Comment 8 Bryan Kearney 2018-02-21 17:30:01 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336