Skip to content

[Fix] UI - Virtual Keys Table: Sorting Shows Incorrect Entries#19534

Merged
yuneng-jiang merged 2 commits intomainfrom
litellm_ui_sorting_keys_fix_2
Jan 21, 2026
Merged

[Fix] UI - Virtual Keys Table: Sorting Shows Incorrect Entries#19534
yuneng-jiang merged 2 commits intomainfrom
litellm_ui_sorting_keys_fix_2

Conversation

@yuneng-jiang
Copy link
Collaborator

Relevant issues

This PR fixes the issue where upon sorting the table via key alias (or any other sortable field) only a subset of keys will be shown even though the label will say showing 1-50.

The root cause is inside useFilterLogic, where the default size was set to 25, so the server only returned 25 entries for the UI to populate.

Pre-Submission checklist

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

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

CI (LiteLLM team)

CI status guideline:

  • 50-55 passing tests: main is stable with minor issues.
  • 45-49 passing tests: acceptable but needs attention
  • <= 40 passing tests: unstable; be careful with your merges and assess the risk.
  • Branch creation CI run
    Link:

  • CI run for the last commit
    Link:

  • Merge / cherry-pick CI run
    Links:

Type

🐛 Bug Fix
✅ Test

Changes

image image

@vercel
Copy link

vercel bot commented Jan 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
litellm Ready Ready Preview, Comment Jan 21, 2026 11:09pm

Request Review

@yuneng-jiang yuneng-jiang merged commit 665d3f2 into main Jan 21, 2026
38 of 57 checks passed
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.

1 participant