babybuddy / babybuddy-for-android

Android client for the Baby Buddy webapp
MIT License
16 stars 6 forks source link

Current way of dealing with legacy interfaces is very messy #57

Open MrApplejuice opened 1 year ago

MrApplejuice commented 1 year ago

Old pumping entries had a different structure (time) and then new-style pumping structures (start and end). This required introducing a "compatibility layer". The current one is baked straight into the data structure which does not make a whole lot of sense. It makes the data structure with old and new styles. However, this way of dealing with API updates does not scale very well. In the future, we can expect more breaking changes and more needs to support at least two types of APIs so that users can get have some leeway to update their babybuddy server.