Skip to content

Pagination of groups works incorrectly #21949

@transducer

Description

@transducer

Before reporting an issue

Area

admin/ui

Describe the bug

The pagination on the Groups tab in the Keycloak tab works incorrectly. Fewer groups than available are listed. For example,. when there are eight groups, the pagination only shows two:

pagination

Also when clicking through the paginated list of 500 groups paginated by 50, you can visit much more than 10 paginated pages. Thus groups are shown double on every page.

Version

22.0.1

Expected behavior

  • When there are eight groups and there is a 1-8 pagination I expect all eight groups.
  • When there are 500 groups and I paginate by 50 I expect to be able to visit 10 pages, not more.

Actual behavior

  • Two groups are visible on a 1-8 pagination.
  • I can visit roughly 25 pages of 50 groups when there are only 500 groups total.

How to Reproduce?

  1. Create eight top level groups
  2. Give every top level group 50 subgroups
  3. View pagination on main page (it will show fewer than eight groups)
  4. Scroll through all groups of a subgroup (it will paginate wrongly, showing double entries on every page)

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions