{"push_id":778296867,"size":1,"distinct_size":1,"ref":"refs/heads/simplify_changing_edition_types","head":"c612b9c72681de0b84db611656cd356d12ad4193","before":"3ffd283df2adef76fcdf60881f187234bc04e07a","commits":[{"sha":"c612b9c72681de0b84db611656cd356d12ad4193","author":{"email":"63746e053bdb88cab1a6ff1b91b4f85c8fa9ea5d@digital.cabinet-office.gov.uk","name":"Jamie Cobbett"},"message":"Simplify changing Edition types\n\nThe old code had lots of hard-coded bespoke conditions that examined the types\nof the objects to decide what to copy. This changes it to use duck typing to\nfigure out what data can be copied between types.\n\nThis approach is shorter, simpler and handles more conversions and will handle\nnew types without them having to be explicitly added. It also reveals the\nintent better.","distinct":true,"url":"https://api.github.com/repos/alphagov/govuk_content_models/commits/c612b9c72681de0b84db611656cd356d12ad4193"}]}