Closed skull8888888 closed 1 week ago
[!IMPORTANT] Refactor backend to use parameterized queries and enhance frontend with evaluation score progression and group handling. Backend Changes: Removed validate_string_against_injection and execute_query from utils.rs. Refactored queries in evaluation_scores.rs, events.rs, and spans.rs to use parameterized queries with .bind(). Added get_evaluation_score_single_bucket in evaluation_scores.rs for single bucket handling. Removed unused routes in main.rs related to evaluations. Frontend Changes: Added new API routes in route.ts for evaluation groups and progression. Updated chart.tsx and compare-chart.tsx to handle multiple score names and comparison. Introduced progression-chart.tsx for displaying evaluation score progression over time. Updated evaluations.tsx and evaluation.tsx to handle evaluation groups and score selection. Added evaluations-groups-bar.tsx for displaying evaluation groups. Database and Utilities: Updated drizzle.ts to use a singleton pattern for database connections. Added utility functions in utils.ts for handling time ranges and aggregation functions. This description was created by for ccd7a38a823d36f129d5e1a5c613f231971d80c2. It will automatically update as commits are pushed.
[!IMPORTANT] Refactor backend to use parameterized queries and enhance frontend with evaluation score progression and group handling.
validate_string_against_injection
execute_query
utils.rs
evaluation_scores.rs
events.rs
spans.rs
.bind()
get_evaluation_score_single_bucket
main.rs
route.ts
chart.tsx
compare-chart.tsx
progression-chart.tsx
evaluations.tsx
evaluation.tsx
evaluations-groups-bar.tsx
drizzle.ts
utils.ts
This description was created by for ccd7a38a823d36f129d5e1a5c613f231971d80c2. It will automatically update as commits are pushed.