Bug 2149730

Summary: new host details - Repository sets pagination ignores filters
Product: Red Hat Satellite Reporter: Jeremy Lenz <jlenz>
Component: Hosts - ContentAssignee: Jeremy Lenz <jlenz>
Status: CLOSED ERRATA QA Contact: Samir Jha <sajha>
Severity: medium Docs Contact:
Priority: high    
Version: 6.12.0CC: paji, pcreech, sajha
Target Milestone: 6.13.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-03 13:23:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeremy Lenz 2022-11-30 17:44:42 UTC
Example: I have 11 enabled repo sets, and 19 total repo sets for a given host. I filter the list to show only 'Enabled'.

Expected:

per_page set to 20: I see all 11 enabled repository sets on the first page. Pagination says "1-11 of 11." The next page button is disabled.
per_page set to 10: I see 10 enabled repository sets on the first page. Pagination says "1-10 of 11." If I click to move to page 2, it says "11-11 of 11."

Actual:

per_page set to 20: I see all 11 enabled repository sets on the first page, but pagination says "1-19 of 19" reflecting the unfiltered total amount of items.
per_page set to 10: I see only 7 enabled repository sets on the first page, but pagination says "1-10 of 19." If I go to page 2, I see 4 items, but pagination says "11-19 of 19." The pagination is reflecting what _would_ be on the page if the filters were not active.

Comment 1 Jeremy Lenz 2022-11-30 17:44:45 UTC
Created from redmine issue https://projects.theforeman.org/issues/35795

Comment 2 Jeremy Lenz 2022-11-30 17:44:47 UTC
Upstream bug assigned to None

Comment 3 Bryan Kearney 2022-12-02 20:03:21 UTC
Upstream bug assigned to jlenz

Comment 4 Bryan Kearney 2022-12-02 20:03:23 UTC
Upstream bug assigned to jlenz

Comment 5 Bryan Kearney 2022-12-06 20:03:26 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35795 has been resolved.

Comment 11 errata-xmlrpc 2023-05-03 13:23:05 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 (Important: Satellite 6.13 Release), 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-2023:2097