guardian / recipes

1 stars 1 forks source link

Adjust model and UI to shift `durationInMins` field from number to range #98

Closed frederickobrien closed 10 months ago

frederickobrien commented 11 months ago

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.