-
Notifications
You must be signed in to change notification settings - Fork 11.8k
fix: new user not moving from Pending to Deactivated tab in admin UI #35828
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
fix: new user not moving from Pending to Deactivated tab in admin UI #35828
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: f45913a The changes in this PR will be included in the next version bump. This PR includes changesets to release 36 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 |
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
…-users-admin-panel
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
…-users-admin-panel
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #35828 +/- ##
===========================================
+ Coverage 64.63% 64.79% +0.15%
===========================================
Files 3244 3093 -151
Lines 95398 92144 -3254
Branches 17859 17516 -343
===========================================
- Hits 61665 59709 -1956
+ Misses 30841 29683 -1158
+ Partials 2892 2752 -140
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
…nto SUP-775-issue-with-the-pending-tab-in-the-users-admin-panel
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please wrap callbacks like beforeAll
and afterAll
inside a test.describe
callback, to follow a set pattern? You can check other tests.
…-users-admin-panel
…-users-admin-panel
…-users-admin-panel
…-users-admin-panel
…-users-admin-panel
…-users-admin-panel
Proposed changes (including videos or screenshots)
Issue(s)
SUP-775
Steps to test or reproduce
Expected Behavior
The user should be listed in the Deactivated tab on the Users admin panel and not the pending tab
Actual Behavior
The user is still listed in the pending tab
Further comments
This pull request addresses an issue in the Rocket.Chat admin UI where new users who have not logged in remain incorrectly listed under the "Pending" tab even after being deactivated. The changes involve updating the
useFilteredUsers
hook by adding a status field to the pending user payload. This modification ensures consistency with other user status definitions and corrects the behavior so that deactivated users are appropriately moved to the "Deactivated" tab.