Bug #29329
closedper_page does not work correctly in roles switcher on host edit page
Description
Steps to reproduce:
1) have 20+ ansible roles in foreman
2) go to host edit page
3) notice per_page is set to 20 in roles switcher, but only 10 roles are actually in the list
4) change per_page to 5 - there will be 5 roles in the list, but per_page still shows 20. Also pagination shows '1-20 of x' and when requesting the next page, it fetches 5 roles, but still operates on the page size of 20 ('21-40 of x') and roles 6 - 15 are skipped and never displayed.
Updated by Alexandre Barth over 4 years ago
I think this is related to this issue i opened a few time ago, and this is general to foreman since 2.0 : https://projects.theforeman.org/issues/29391
Updated by Ondřej Ezr almost 4 years ago
- Priority changed from Normal to Low
- Triaged changed from No to Yes
Updated by Nofar Alfassi over 2 years ago
- Found in Releases smart_proxy_ansible-3.4.0 added
On foreman_ansible 9.0.0 step 3 is still happening, but step 4 is now working as it should - `per page` and pagination show the correct numbers, and no roles are skipped).
There is however a problem when changing the `per page` amount (except on the first page), sometimes showing a wrong number in the `x-.. of .. items`, or that your current page becomes the first page (but not always the page number changes to 1).
Updated by The Foreman Bot over 2 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_ansible/pull/556 added
Updated by Nofar Alfassi almost 2 years ago
- Related to Bug #36368: Unable to see all ansible roles available when editing a hostgroup and the "entries per page" is bigger than the number of available roles added
Updated by Nofar Alfassi almost 2 years ago
- Related to deleted (Bug #36368: Unable to see all ansible roles available when editing a hostgroup and the "entries per page" is bigger than the number of available roles)
Updated by Nofar Alfassi almost 2 years ago
- Status changed from Ready For Testing to Duplicate
- Pull request deleted (
https://github.com/theforeman/foreman_ansible/pull/556)
Updated by Nofar Alfassi almost 2 years ago
- Is duplicate of Bug #36368: Unable to see all ansible roles available when editing a hostgroup and the "entries per page" is bigger than the number of available roles added