Skip to content

Resolve "Tighten up schemas for AlleInterpretation.state and AnalysisInterpretation.state"

Description

Migrate and consolidate all state in AlleleInterpretation, AnalysisInterpretation, and InterpretationStateHistory

  • Add pydantic models as types on state-columns in database
  • Split states in two, AlleleInterpretationState and AnalysisInterpretationState
  • Use stricter models in POSTs to finalize allele, save (patch) interpretation
  • Consolidate models for allele reports, allele assessments and reference assessments
    • NewAlleleReport, ReusedAlleleReport, NonReusedAlleleReport
    • NewAlleleAssessment, ReusedAlleleAssessment, NonReusedAlleleAssessment
    • NewReferenceAssessment, ReusedReferenceAssessment, NonReusedReferenceAssessment

Notes to review (code/docs/QA)

Migration have been run on all historic data. Needs proper attention when testing release candidate.

Related issues

Closes #2303 (closed)

Edited by Øyvind Evju

Merge request reports