Skip to content

Usage Page: Aggregate the data across all pages #12033

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

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

NANDINI-star
Copy link
Collaborator

Title

Usage Page: Aggregate the data across all pages

Relevant issues

#11929 (comment)

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🐛 Bug Fix

Changes

  • Updated the fetchUserSpendData function. It now initializes the totals with the data from the first page and then iterates through the remaining pages, adding the totals from each page to the running aggregate. This ensures that the dashboard will show the correct totals even when the data is spread across multiple pages.

Copy link

vercel bot commented Jun 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 25, 2025 1:39pm

@krrishdholakia krrishdholakia merged commit 2a6dab0 into main Jun 25, 2025
11 checks passed
@krrishdholakia krrishdholakia deleted the usage-dashboard-pagination-bug branch June 25, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants