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 1615800 - Export list of content host do not honour search filter
Summary: Export list of content host do not honour search filter
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.4
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: 6.5.0
Assignee: satellite6-bugs
QA Contact: Nikhil Kathole
URL:
Whiteboard:
: 1604457 (view as bug list)
Depends On:
Blocks: 1464219
TreeView+ depends on / blocked
 
Reported: 2018-08-14 09:39 UTC by Nikhil Kathole
Modified: 2023-09-07 19:17 UTC (History)
8 users (show)

Fixed In Version: tfm-rubygem-katello-3.9.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-14 12:37:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 25226 0 High Closed Export list of content host do not honour search filter 2020-02-21 17:08:49 UTC
Red Hat Product Errata RHSA-2019:1222 0 None None None 2019-05-14 12:37:57 UTC

Description Nikhil Kathole 2018-08-14 09:39:19 UTC
Description of problem: 

Exporting list of content host on the basis of search filter result added all content hosts in csv file.

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

Satellite 6.4 snap 17


How reproducible: always


Steps to Reproduce:
1. Navigate to Hosts-> content host (Have some hosts in satellite)
2. Search for any host pattern (such as os_title ~ "RHEL Server 7.5")
3. Click on export

Actual results:
All the hosts info in satellite get exported in csv.


Expected results:

only filtered host info should present in csv.


Additional info: This works as expected at Hosts -> All hosts page. (Export on content host page is newly added in sat 6.4)

Comment 3 Brad Buckingham 2018-08-14 13:07:26 UTC
Hi Tomer,

This was opened while verifying bug 1464219.  Is this a bug or RFE?

If I recall correctly, the Export CSV does not honor search filters or paging.  If so, I was unsure if this is intentional.

Comment 4 Tomer Brisker 2018-08-14 15:00:12 UTC
CSV export should respect search filters (as well as org/loc context). It should only ignore pagination. (and ordering which is ignored for performance reasons)

Comment 7 Samir Jha 2018-10-17 20:22:54 UTC
Created redmine issue http://projects.theforeman.org/issues/25226 from this bug

Comment 8 Satellite Program 2018-10-25 14:06:24 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/25226 has been resolved.

Comment 11 Nikhil Kathole 2018-12-12 10:42:03 UTC
VERIFIED

Version tested:
Satellite 6.5 snap 7 

Successfully exported only list of hosts which are filtered.

Comment 15 errata-xmlrpc 2019-05-14 12:37:48 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-2019:1222

Comment 16 Brad Buckingham 2019-07-10 20:56:24 UTC
*** Bug 1604457 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.