Skip to content

Pagination of groups works incorrectly #21949

Closed

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

Activity

  1. added
    kind/bug
    on Jul 25, 2023
  2. ghost added
    area/admin/ui
    on Jul 25, 2023
  3. changed the title [-]Pagination of groups does not work[/-] [+]Pagination of groups works incorrectly[/+] on Jul 25, 2023
  4. ssilvert commented on Jul 25, 2023

    @ssilvert
    Contributor

    This PR probably fixes your problem.
    #21520

    The author is out this week so it probably won't merged until he returns. After that you can give it a try with the nightly build and see if it fixes your problem. @transducer Will you be able to do that?

  5. transducer commented on Jul 26, 2023

    @transducer
    ContributorAuthor

    @ssilvert thanks for reply. I will check later then.

  6. added a commit that references this issue on Aug 7, 2023
    42a7045
  7. self-assigned this
    on Aug 7, 2023
  8. added a commit that references this issue on Aug 9, 2023
    2b8202a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/admin/uikind/bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions