Project

General

Profile

Bug #20248

Exporting list of all hosts into a CSV file won't insert Environment, Hostgroup and Model information

Added by Tomer Brisker about 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inventory
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

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

Revision c8f5cd53 (diff)
Added by Tomer Brisker about 2 years ago

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.

Revision b0fec173 (diff)
Added by Tomer Brisker about 2 years ago

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)

Revision e1af012f (diff)
Added by Tomer Brisker about 2 years ago

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 about 2 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 about 2 years ago

  • Target version set to 1.17.0-RC2

#3 Updated by Daniel Lobato Garcia about 2 years ago

  • Legacy Backlogs Release (now unused) set to 240

#4 Updated by Tomer Brisker about 2 years ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Tomer Brisker about 2 years ago

  • Legacy Backlogs Release (now unused) changed from 240 to 276

Also available in: Atom PDF