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.
Old pumping entries had a different structure (
time
) and then new-style pumping structures (start
andend
). 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.