Rename a country
We recommend testing out these instructions in integration and then staging before using them in production.
1. Update Foreign Travel Advice publisher
This will update www.gov.uk/foreign-travel-advice/countryname. In Travel Advice Publisher:
- Create a pull request with:
- A migration to update the relevant
country_slugof TravelAdviceEdition. Example
A change of the relevant name and slug in the
lib/data/countries.ymlfile. Keep the same
email_signup_content_id, and ensure the alphabetical order of the list is respected. Example
Deploy Travel Advice publisher Once the above PRs are ready, deploy Travel Advice Publisher. This should be an
app:migrate_and_hard_restartdeploy as a hard restart is required to update the yml file.
Run rake tasks
Run bundle exec rake publishing_api:republish_edition[new_country_slug] to update the PublishingApi.
Run publishing_api:republish_email_signups:editions to update email subscriptions.
Update the search title In the UI, go to the country, create a new edition, tick “minor update” and update the Search title and Search description fields to ensure search results have the updated name. Save and publish.
2. Update Worldwide Taxons
This will update /world/countryname.
Rename the taxon in the Rummager index list.
Once the Rummager change is deployed, open the relevant country in Content Tagger, tick “minor update” and update all the relevant fields with the new country name. Save the draft and publish.
Note: updating the child taxons linked to the country taxon (“UK help and services in country”) will be a content task.
3. Update Whitehall
This will update /world/countryname/news. In Whitehall:
Update in the UI Go to the relevant country in World Location News and in the “Details” tab edit the Title, Mission statement and relevant Featured links.
4. Update Smart-answers
This will update content from pages served by smart-answers such as marriage-abroad/y/countryname. In Smart-answers:
Find and replace (case sensitive) old_country_name with new_country_name, then Old_country_name with New_country_name. Example
bundle exec rake checksums:update
Open and deploy a PR with these changes