Resolve "Tighten up schemas for AlleInterpretation.state and AnalysisInterpretation.state"
requested to merge 2303-tighten-up-schemas-for-alleinterpretation-state-and-analysisinterpretation-state into dev
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
andAnalysisInterpretationState
- 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