Skip to content

feat(weave): enable server side sorting#6512

Closed
nikumar1206 wants to merge 4 commits intomasterfrom
nikhil/enable-server-side-sorting
Closed

feat(weave): enable server side sorting#6512
nikumar1206 wants to merge 4 commits intomasterfrom
nikhil/enable-server-side-sorting

Conversation

@nikumar1206
Copy link
Copy Markdown
Contributor

@nikumar1206 nikumar1206 commented Mar 31, 2026

Description

This PR enables server-side sorting for evaluation results. We now take a 'sort_by' parameter in the API endpoint, and the sort_by is resolved in Python. We can push this into CH later if we would like!

Testing

  • unit tests

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2026

Codecov Report

❌ Patch coverage is 74.66667% with 19 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
weave/trace_server/eval_results_helpers.py 73.61% 11 Missing and 8 partials ⚠️

📢 Thoughts on this report? Let us know!

@wandbot-3000
Copy link
Copy Markdown

wandbot-3000 Bot commented Mar 31, 2026

@nikumar1206 nikumar1206 marked this pull request as ready for review March 31, 2026 00:45
@nikumar1206 nikumar1206 requested a review from a team as a code owner March 31, 2026 00:45
Copy link
Copy Markdown
Collaborator

@neutralino1 neutralino1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What advantage does this bring compared to client-side sorting?

I understand this would be a requirement for server-side pagination but that is not enabled yet.

@nikumar1206
Copy link
Copy Markdown
Contributor Author

server-side sorting is a pre-req for server-side pagination.

if we implement pagination first, the client side would be sorting items from just one page of data, which would break the current functionality we already have on the frontend.

@nikumar1206 nikumar1206 deleted the nikhil/enable-server-side-sorting branch April 14, 2026 18:22
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants