Bug #20248
Exporting list of all hosts into a CSV file won't insert Environment, Hostgroup and Model information
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1468627
Description of problem: We were trying to export list of all hosts with its information detailed in table, but the information regarding environment, host group and model won't be inserted into CSV file.
Version-Release number of selected component (if applicable): sat6.3.0 snap5
How reproducible: always
Steps to Reproduce:
1. Create hosts
2. Navigate to Hosts -> All Hosts -> Export
3. Open the CSV file
Actual results:
CSV file include host name, operating system and last report information.
Expected results:
CSV file should include all information(Name, Operating system, Environment, Model, Host group, Last report) present in table.
Additional info:
Associated revisions
Fixes #20248, #20327 - Respect context in CSV export
Since CSV export is done using an enumerator which is executed by a
different thread to the one that creates it, we need to manually pass in
the context (user, location, organization) to the enumerator.
(cherry picked from commit c8f5cd53b3551867e54aedd24116293b0e2312d1)
Fixes #20248, #20327 - Respect context in CSV export
Since CSV export is done using an enumerator which is executed by a
different thread to the one that creates it, we need to manually pass in
the context (user, location, organization) to the enumerator.
(cherry picked from commit c8f5cd53b3551867e54aedd24116293b0e2312d1)
History
#1
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Tomer Brisker
- Pull request https://github.com/theforeman/foreman/pull/4653 added
#2
Updated by Marek Hulán over 5 years ago
- Target version set to 1.17.0-RC2
#3
Updated by Daniel Lobato Garcia over 5 years ago
- Legacy Backlogs Release (now unused) set to 240
#4
Updated by Tomer Brisker over 5 years ago
- Status changed from Ready For Testing to Closed
#5
Updated by Tomer Brisker over 5 years ago
- Legacy Backlogs Release (now unused) changed from 240 to 276
Fixes #20248, #20327 - Respect context in CSV export
Since CSV export is done using an enumerator which is executed by a
different thread to the one that creates it, we need to manually pass in
the context (user, location, organization) to the enumerator.