mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #13135] [CLOSED] feat: implement pagination for /admin/users #61965
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/13135
Author: @AnapatChaiwongse
Created: 4/22/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (5)
4bd941dUpdate UserList.sveltea6ad5e3Update users.py3f8874aUpdate users.py1d3ebcbUpdate index.ts577dee5Update Users.svelte📊 Changes
5 files changed (+117 additions, -71 deletions)
View changed files
📝
backend/open_webui/models/users.py(+17 -2)📝
backend/open_webui/routers/users.py(+12 -3)📝
src/lib/apis/users/index.ts(+53 -19)📝
src/lib/components/admin/Users.svelte(+3 -1)📝
src/lib/components/admin/Users/UserList.svelte(+32 -46)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
/admin/users. Previously, the old/usersis used to return all available users which may cause the performance problem in a huge database.Added
/usersto be able to receivepageparameter which used to indicate the page of the users. For example,/users/?page=1&limit=10./usersto be able to receiveqparameter which used to query for the user. For example,/users/?q="".Changed
pageandqwhen calling/users.User.svelteto forward a number of users instead of the whole data of users.userList.svetleto call/users/?q=""instead of filtering for the users inside the page.Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the CONTRIBUTOR_LICENSE_AGREEMENT, and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.