Bug #29329
closed
per_page does not work correctly in roles switcher on host edit page
Added by Ondřej Pražák almost 5 years ago.
Updated almost 2 years ago.
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.
- Priority changed from Normal to Low
- Triaged changed from No to Yes
- 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).
- Assignee set to Nofar Alfassi
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_ansible/pull/556 added
- 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
- 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)
- Status changed from Ready For Testing to Duplicate
- Pull request deleted (
https://github.com/theforeman/foreman_ansible/pull/556)
- 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
Also available in: Atom
PDF