8000 Reset group tree pagination when search changes by FayezBast · Pull Request #55559 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Reset group tree pagination when search changes - #55559

Open
FayezBast wants to merge 1 commit into
keycloak:mainfrom
FayezBast:fix/group-tree-search-pagination
Open

FayezBast wants to merge 1 commit into
keycloak:mainfrom
FayezBast:fix/group-tree-search-pagination

Conversation

@FayezBast
Copy link
Copy Markdown

The Admin Console Groups tree carried the current page offset into new searches. From page two, searching for a single matching group could return an empty tree.

The tree now returns to page one when the query changes, is cleared, or Exact search is toggled with an active query.

Signed-off-by: FayezBast <fayezbast15@gmail.com>
@FayezBast
FayezBast requested review from a team as code owners November 25, 2026 23:16
Copilot AI balanced review requested due to automatic review settings November 25, 2026 23:16
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the group-tree search pagination fix.

No open issues 🎉

What changed in this PR

Fixes Admin Console group-tree searches returning empty results when a new search inherits a later page’s offset.

Changes:

  • Resets pagination when the submitted query changes, is cleared, or exact search is toggled with an active query.
  • Adds regression coverage for these resets and verifies that resubmitting an unchanged query preserves the current page.
File Description
js/​apps/​admin-ui/​test/​groups/​list.spec.ts Adds regression coverage for search-related pagination behavior.
js/​apps/​admin-ui/​src/​groups/​components/​GroupTree.tsx Resets the page offset in query and exact-search handlers.

Review effort: Balanced

Sign up for free to join this conversation on 9A7A GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0