matthiaskoenig / pkdb

Pharmacokinetics database
https://alpha.pk-db.com
30 stars 6 forks source link

Refactor external models (GroupEx, IndividualEx, CharacteristicaEx, OutputEx, TimecourseEx, InterventionEx) #551

Closed janekg89 closed 4 years ago

janekg89 commented 4 years ago

Maintaining these models is a lot of work. They should be as slim as possible. CharacteristicExModel can be e.g. easily removed. Most of the validation is happening anyway on the internal serializer. Roadmap: Remove all fields from the models besides source, figure, subset, groupby (Externable) and add them explicitly to the serializer. All other fields should only exist on the serializer. This makes the data model a lot more lightweight, which makes integrating new features like 2d data a lot easier.