DemocracyClub / uk-election-timetables

Encapsulates timetable legislation for elections run in the United Kingdom and its devolved administrations. 🗳🕰
MIT License
3 stars 0 forks source link

Keep historic bank holidays when updating bank holiday data #19

Closed symroe closed 1 year ago

symroe commented 1 year ago

Our current workflow for updating bank holidays is basically to curl the JSON at https://www.gov.uk/bank-holidays.json and commit it.

This is problematic, as the GOV.UK JSON only contains bank holidays from 5 years ago, and forward. If we want to make a timetable for, say, a 2015 election, we'll not be able to.

Rather than simply curling, we should make a script that grabs the data and merges it with the data we have already. We should seed this historic data with previous commits from this repo, to go back as far as we can (I think this is the oldest we have).