mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-21 09:01:47 -05:00
[PR #24791] refactor: remove unused GET /analytics/messages endpoint #115157
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/24791
Author: @Classic298
Created: 5/15/2026
Status: 🔄 Open
Base:
dev← Head:remove-unused-analytics-messages-endpoint📝 Commits (1)
4c5ff53refactor: remove unused GET /analytics/messages endpoint📊 Changes
2 files changed (+0 additions, -77 deletions)
View changed files
📝
backend/open_webui/routers/analytics.py(+0 -31)📝
src/lib/apis/analytics/index.ts(+0 -46)📄 Description
The message-query analytics endpoint's only frontend wrapper, getMessages in src/lib/apis/analytics/index.ts, is dead: nothing imports or calls it (the apparent name collisions are unrelated backend snake_case get_messages_by_* model methods), the route handler has no internal caller, and the path is referenced nowhere else. Removes the route handler and the dead wrapper. The shared ChatMessageModel response model and ChatMessages.get_messages_by_* data methods are untouched, as are the sibling /analytics endpoints.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.