lmnr-ai / lmnr

Laminar - open-source all-in-one platform for engineering AI products. Crate data flywheel for you AI app. Traces, Evals, Datasets, Labels. YC S24.
https://www.lmnr.ai
Apache License 2.0
1.17k stars 58 forks source link

delete unused columns from schemas and code to delete from DB #205

Closed dinmukhamedm closed 1 week ago

dinmukhamedm commented 1 week ago

Column removal checklist


[!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 Ellipsis for 24848bc61451eb7dc0e171a5b6116f7d4c65e316. It will automatically update as commits are pushed.