[X] identify all the places where these columns are still queried or inserted
[X] Remove any code referencing the columns
[X] IMPORTANT: If removing columns we'd previously insert to and the code that inserts, check in the Prod DB that the columns have a default value or are nullable
[X] Test all changed functionality manually
[!IMPORTANT]
Remove unused columns and types from database schema and update related application code.
Database Schema Changes:
Remove job_status column from labels table and label_job_status type.
Remove scores column from evaluation_results table.
Remove metadata column from evaluations table.
Drop constraint user_usage_workspace_id_key from workspace_usage table.
Code Changes:
Remove LabelJobStatus enum and related code in db/labels.rs and labels/mod.rs.
Update functions in db/labels.rs to remove references to job_status.
Update insert_or_update_label in labels/mod.rs to remove job_status parameter.
Update run_evaluator in traces/evaluators.rs to remove job_status handling.
Update record_labels_to_db in traces/utils.rs to remove job_status handling.
Miscellaneous:
Update migration files to reflect schema changes.
Update relations.ts and schema.ts to reflect schema changes.
This description was created by for 24848bc61451eb7dc0e171a5b6116f7d4c65e316. It will automatically update as commits are pushed.
Column removal checklist