Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@shuyangli
Copy link
Member

@shuyangli shuyangli commented Dec 17, 2025

  • Add get_evaluation_run_infos_for_datapoint to EvaluationQueries trait
  • Implement ClickHouse query using TagInference table
  • Add route handler at /internal/evaluations/datapoints/{datapoint_id}/run-infos
  • Add unit tests with mocks for handler and database layer
  • Add e2e tests for endpoint and database queries
  • Update TensorZeroClient with new method
  • Update UI route to use TensorZeroClient
  • Remove unused getEvaluationRunInfosForDatapoint from evaluations.server.ts

Important

Migrate getEvaluationRunInfosForDatapoint to backend with new ClickHouse query and API endpoint, updating UI and tests accordingly.

  • Backend:
    • Add get_evaluation_run_infos_for_datapoint to EvaluationQueries trait in evaluation_queries.rs.
    • Implement ClickHouse query using TagInference table in evaluation_queries.rs.
    • Add route handler at /internal/evaluations/datapoints/{datapoint_id}/run-infos in get_run_infos.rs.
  • Testing:
    • Add unit tests for handler and database layer in evaluation_queries.rs and get_run_infos.rs.
    • Add e2e tests for endpoint and database queries in evaluation_queries.rs and evaluations.rs.
  • UI:
    • Update TensorZeroClient with getEvaluationRunInfosForDatapoint method in tensorzero.ts.
    • Update UI route to use TensorZeroClient in route.tsx.
    • Remove unused getEvaluationRunInfosForDatapoint from evaluations.server.ts.

This description was created by Ellipsis for 24a3f89. You can customize this summary. It will automatically update as commits are pushed.

@shuyangli shuyangli mentioned this pull request Dec 17, 2025
52 tasks
@shuyangli shuyangli force-pushed the sl/migrate-get-evaluation-run-infos branch from cc7fc00 to 89dd786 Compare December 17, 2025 22:31
Base automatically changed from sl/migrate-get-evaluation-run-infos to main December 18, 2025 00:28
@shuyangli shuyangli force-pushed the sl/migrate-get-evaluation-run-infos-for-datapoint branch from 3d40705 to bfe7b2d Compare December 18, 2025 15:18
@shuyangli shuyangli changed the title [Stacked] Port getEvaluationRunInfosForDatapoint to backend Migrate getEvaluationRunInfosForDatapoint to backend Dec 18, 2025
- Add get_evaluation_run_infos_for_datapoint to EvaluationQueries trait
- Implement ClickHouse query using TagInference table
- Add route handler at /internal/evaluations/datapoints/{datapoint_id}/run-infos
- Add unit tests with mocks for handler and database layer
- Add e2e tests for endpoint and database queries
- Update TensorZeroClient with new method
- Update UI route to use TensorZeroClient
- Remove unused getEvaluationRunInfosForDatapoint from evaluations.server.ts
@shuyangli shuyangli force-pushed the sl/migrate-get-evaluation-run-infos-for-datapoint branch from bfe7b2d to 5188296 Compare December 18, 2025 21:16
@shuyangli shuyangli marked this pull request as ready for review December 18, 2025 21:17
Copy link
Member Author

/merge-queue

@github-actions
Copy link
Contributor

🚀 Merge queue workflow triggered!

View the run: https://github.com/tensorzero/tensorzero/actions/runs/20351598805

@shuyangli shuyangli enabled auto-merge December 18, 2025 21:54
Changed the query to match the old TypeScript version:
- Added function_type parameter to determine inference table (ChatInference vs JsonInference)
- Query now selects from inference table instead of TagInference
- CTE no longer filters by function_name
- Gets evaluation_run_id from tags column instead of TagInference value

Revert get_evaluation_run_infos_for_datapoint query to old pattern

Changed the query to match the old TypeScript version:
- Added function_type parameter (FunctionConfigType) to determine inference table
- Query now selects from inference table (ChatInference/JsonInference) instead of TagInference
- CTE no longer filters by function_name
- Gets evaluation_run_id from tags column instead of TagInference value
- Gateway computes function_type from config instead of requiring it as query param
- Handler validates function exists in config before querying
@shuyangli shuyangli force-pushed the sl/migrate-get-evaluation-run-infos-for-datapoint branch from 0268678 to 24a3f89 Compare December 18, 2025 22:37
Copy link
Member Author

@shuyangli shuyangli left a comment

Choose a reason for hiding this comment

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

Restored the old SQL

@shuyangli shuyangli added this pull request to the merge queue Dec 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 19, 2025
@shuyangli shuyangli added this pull request to the merge queue Dec 19, 2025
Merged via the queue into main with commit 4c04921 Dec 19, 2025
56 checks passed
@shuyangli shuyangli deleted the sl/migrate-get-evaluation-run-infos-for-datapoint branch December 19, 2025 17:30
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.

3 participants