Open
Conversation
…mins - Add `GetByRole` method to `UsersStore` to fetch users by their role. - Add `GetAllReviewAssignmentToggles` method to `SettingsStore` to retrieve the full list of toggle settings. - Update `GET /superadmin/settings/review-assignment-toggle` to return a list of all super admins and their enabled status (defaulting to true if not explicitly set). - Update `POST /superadmin/settings/review-assignment-toggle` to accept a `user_id` in the payload, allowing super admins to toggle review assignment for specific users instead of just themselves.
feat(api): update review assignment toggle endpoints to manage all ad…
This commit introduces a new "User Management" page accessible to super admins. This page displays a table of all administrators and provides a toggle switch for each user. This switch controls whether an admin is eligible to receive new application reviews from the automatic assignment system. This gives super admins granular control over the pool of active reviewers, allowing them to easily manage reviewer availability without having to remove them from the system.
…hackutd/harp into review_assignment_toggle_2_real
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(api): update review assignment toggle endpoints to manage all admins
GetByRolemethod toUsersStoreto fetch users by their role.GetAllReviewAssignmentTogglesmethod toSettingsStoreto retrieve the full list of toggle settings.GET /superadmin/settings/review-assignment-toggleto return a list of all super admins and their enabled status (defaulting to true if not explicitly set).POST /superadmin/settings/review-assignment-toggleto accept auser_idin the payload, allowing super admins to toggle review assignment for specific users instead of just themselves.feat(superadmin): add user management page for review toggles
This commit introduces a new "User Management" page accessible to super admins.
This page displays a table of all administrators and provides a toggle switch for each user. This switch controls whether an admin is eligible to receive new application reviews from the automatic assignment system.
This gives super admins granular control over the pool of active reviewers, allowing them to easily manage reviewer availability without having to remove them from the system.