mysociety / caps

A simple, open database of local government climate action plan documents and emissions data.
https://cape.mysociety.org
Other
8 stars 2 forks source link

Rename "Newcastle Upon Tyne, North Tyneside and Northumberland Combined Authority" to "North of Tyne Combined Authority" #216

Closed zarino closed 2 years ago

zarino commented 2 years ago

https://data.climateemergency.uk/councils/newcastle-upon-tyne-north-tyneside-and-northumberland-combined-authority/

They call themselves the "North of Tyne Combined Authority" now:

https://www.northoftyne-ca.gov.uk/

ajparsons commented 2 years ago

This is correct in the new source data if that helps https://github.com/mysociety/uk_local_authority_names_and_codes/blob/main/data/uk_local_authorities.json#L12495

zarino commented 2 years ago

@struan this still isn’t fixed. (ISTR we thought the name change would get picked up next time we refreshed the site? Clearly not.)

Also, "Sheffield City Region Combined Authority" renamed itself to "South Yorkshire Mayoral Combined Authority" in September 2021 – although that hasn’t made it into @ajparsons’ uk_local_authorities.json yet.

ajparsons commented 2 years ago

I had a go at this and there's a few tricky areas:

I've changed the names back in the main sheet for now.

A practical issue before that is the council import code assume names do not change. I've fixed this in a PR, but this needs to be merged before trying to change any names. Even then, because we use a slug based on the name, not the authority code, in the url, the urls to old councils will disappear (I think this is fine, but fyi).

zarino commented 2 years ago

Yes, I assumed the old council page URLs would disappear. Still, feels like the benefit of having nice human-readable council name slugs in the URLs outweighs the ocassional annoyance of council page URLs breaking when councils change their names. I guess the ideal situation would be for us to use the alt-names list in your JSON file to handle redirects when an unrecognised council slug is requested. Something for another day!