-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: Pagination not working properly in UsersInRoleTable
#37203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: 8a82b5a The changes in this PR will be included in the next version bump. This PR includes changesets to release 42 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughPagination in the Users in Role table now uses the backend-provided total count (data.total) instead of the local users.length. A changeset bumps the @rocket.chat/meteor package patch version and documents the bug fix. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Admin as Admin UI (UsersInRoleTable)
participant API as Backend API
Admin->>API: fetch users in role (page, pageSize)
API-->>Admin: { users: [...], total: N }
rect rgba(200, 240, 255, 0.3)
note right of Admin: Updated behavior
Admin->>Admin: Set pagination count = data.total (fallback 0)
end
Admin->>Admin: Render table rows and pagination
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #37203 +/- ##
========================================
Coverage 67.38% 67.38%
========================================
Files 3288 3288
Lines 111815 111815
Branches 20422 20432 +10
========================================
+ Hits 75341 75343 +2
+ Misses 33787 33786 -1
+ Partials 2687 2686 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Proposed changes (including videos or screenshots)
Due to a wrong usage of the size of the results instead of the
totalfrom the API response, the pagination isn't working properly in this table. In order to be able to test this table, we'll need to make a refactor in and isolate the data from the UI. It will be covered herebefore
after
Issue(s)
Steps to test or reproduce
Further comments
SUP-856
Summary by CodeRabbit
Bug Fixes
Chores