Project

General

Profile

Actions

Bug #29329

closed

per_page does not work correctly in roles switcher on host edit page

Added by Ondřej Pražák about 4 years ago. Updated 12 months ago.

Status:
Duplicate
Priority:
Normal
Assignee:
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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.


Subtasks 1 (0 open1 closed)

Foreman - Bug #35400: Update pagination component to fix ansible roles pagination on host edit pageDuplicateNofar AlfassiActions

Related issues 1 (0 open1 closed)

Is duplicate of Ansible - 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 rolesClosedNofar AlfassiActions
Actions #1

Updated by Alexandre Barth almost 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

Actions #2

Updated by Ondřej Ezr almost 3 years ago

  • Priority changed from Normal to Low
  • Triaged changed from No to Yes
Actions #3

Updated by Nofar Alfassi over 1 year 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).

Actions #4

Updated by Nofar Alfassi over 1 year ago

  • Assignee set to Nofar Alfassi
Actions #5

Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_ansible/pull/556 added
Actions #6

Updated by Nofar Alfassi 12 months 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
Actions #7

Updated by Nofar Alfassi 12 months 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)
Actions #8

Updated by Nofar Alfassi 12 months ago

  • Status changed from Ready For Testing to Duplicate
  • Pull request deleted (https://github.com/theforeman/foreman_ansible/pull/556)
Actions #9

Updated by Nofar Alfassi 12 months 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
Actions

Also available in: Atom PDF