This updates the recipe data model to expect ranges rather than numbers in the timings durationInMins field, and adds an under the hood conversion check as part of Hatch's save functionality.
How to test
Run locally, save recipes, and see if the duration field shape changes and saves as expected.
How can we measure success?
Recipe data model is consistent all through the D&I -> Hatch -> CoPip -> App pipeline.
Have we considered potential risks?
As ever there is a wariness about messing with data integrity. Between nightly backups and strict type checking on anything going into DynamoDB hopefully we're safe here.
What does this change?
This updates the recipe data model to expect ranges rather than numbers in the timings
durationInMins
field, and adds an under the hood conversion check as part of Hatch's save functionality.How to test
Run locally, save recipes, and see if the duration field shape changes and saves as expected.
How can we measure success?
Recipe data model is consistent all through the D&I -> Hatch -> CoPip -> App pipeline.
Have we considered potential risks?
As ever there is a wariness about messing with data integrity. Between nightly backups and strict type checking on anything going into DynamoDB hopefully we're safe here.