Skip to content

Revert "feat: updating minor features" - #107

Closed
TEJASNARAYANS wants to merge 1 commit into
mainfrom
revert-106-call-import-upgrades
Closed

Revert "feat: updating minor features"#107
TEJASNARAYANS wants to merge 1 commit into
mainfrom
revert-106-call-import-upgrades

Conversation

@TEJASNARAYANS

Copy link
Copy Markdown
Contributor

Reverts #106

@greptile-apps

greptile-apps Bot commented Aug 3, 2026

Copy link
Copy Markdown

Greptile Summary

This revert removes production-transcript evaluation support and metric clipboard tooling while restoring earlier row mutation, dispatch, and PDF-report behavior.

  • Evaluation creation and execution are restricted to diarised transcripts.
  • Several single-row call-import mutations return to direct database-session queries.
  • Metric copy/paste support and associated frontend utilities are removed.
  • PDF report pagination and layout styling are reverted.

Confidence Score: 4/5

The PR is not safe to merge until shard-aware row mutations and compatibility for persisted production-source evaluations are restored.

Catalog-only mutation queries make valid shard-resident rows unreachable, while retries of existing production-source evaluations silently score a different transcript.

Files Needing Attention: app/api/v1/routes/call_imports.py, app/workers/tasks/evaluate_call_import_row.py, app/api/v1/routes/call_import_evaluations.py

Important Files Changed

Filename Overview
app/api/v1/routes/call_imports.py Restores catalog-only row mutations, breaking delete, diarisation cancellation, and speaker swapping for shard-resident rows.
app/workers/tasks/evaluate_call_import_row.py Forces all evaluation workers to score diarised transcripts, including retries of persisted production-source runs.
app/api/v1/routes/call_import_evaluations.py Restricts new runs to diarised transcripts and removes source-aware row serialization without compatibility handling for existing production runs.
app/workers/tasks/process_call_import_row.py Unconditionally chains post-import diarisation; validated new runs supply the required configuration, while legacy-source effects are covered by the evaluation compatibility finding.
app/services/reporting/call_import_evaluation_pdf_report.py Reverts report-section classes and pagination-oriented CSS, with no independently publishable correctness failure established.
frontend/src/pages/callImports/CallImportDetail.tsx Removes production-source evaluation selection and transcript copy controls to align the UI with diarised-only creation.
frontend/src/pages/metrics/MetricsManagement.tsx Removes metric clipboard import/export controls and fixes newly created categories to single-choice mode.

Reviews (1): Last reviewed commit: "Revert "feat: updating minor features (#..." | Re-trigger Greptile

Comment on lines +3012 to 3019
row = (
db.query(CallImportRow)
.filter(
CallImportRow.id == row_id,
CallImportRow.call_import_id == call_import.id,
)
.first()
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Shard rows become unreachable

When sharding is enabled, get_db supplies the catalog session while call-import rows reside on shard databases, so this direct query returns 404 for existing rows and prevents deletion. The same catalog-only lookup also breaks single-row diarisation cancellation and speaker swapping.

Comment on lines 377 to +381

production_transcript = (source_row.transcript or "").strip()
diarised_transcript = (source_row.diarised_transcript or "").strip()
eval_source = (
(evaluation.transcript_source or "diarised").strip().lower()
)
if eval_source == "production":
transcript = production_transcript
missing_label = "production"
else:
transcript = diarised_transcript
missing_label = "diarised"
transcript = diarised_transcript
missing_label = "diarised"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Retries ignore persisted transcript source

When a persisted production-source evaluation is retried, this worker unconditionally scores diarised_transcript while the run can still report its source as production, causing the retried metric results to use a different input than the original run.

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.

1 participant