The Story object is the key data object passed around by out system all over the place. As we encounter edge cases and make more changes, it feels like it is becoming harder to validate that it is doing the right thing in all cases. I've created this issue to capture ideas for how we might address this so it doesn't become and long-term system risk.
Some initial ideas (from @philbudne and I):
create a robust set of unit tests that mock up the various way it is used and the different shapes of data it has to deal with
add code to validate data types on the way in and throw errors/warnings if they are wrong in some way
more documentation to capture accrued knowledge in-situ for some future developer
The
Story
object is the key data object passed around by out system all over the place. As we encounter edge cases and make more changes, it feels like it is becoming harder to validate that it is doing the right thing in all cases. I've created this issue to capture ideas for how we might address this so it doesn't become and long-term system risk.Some initial ideas (from @philbudne and I):