populationgenomics / automated-interpretation-pipeline

Rare Disease variant prioritisation MVP
MIT License
5 stars 4 forks source link

Adds versions to models #392

Closed MattWellie closed 3 weeks ago

MattWellie commented 3 weeks ago

Fixes

Proposed Changes

  1. read the model version attr from the JSON data
  2. if current != version in file, read as JSON, pass through an adapter method, then parse as a current object (e.g. adding in missing mandatory fields, or changing a string to a list of strings)
  3. if current == version in file, parse JSON directly

This will be a starting point, and any breaking future changes to the models will have to come with a method to preserve backwards compatibility

Checklist