Skip to content

Commit

Permalink
Remove Worldwide Office rendering code
Browse files Browse the repository at this point in the history
In #3095, we
introduced code that supports Worldwide Offices being included in the
Worldwide Organisation content item, whilst also supporting standalone
Worldwide Office content items.

We have now removed all the Worldwide Office content items and the code
that renders them, so can remove the rendering code from this
application.
  • Loading branch information
brucebolt committed Feb 21, 2024
1 parent b41b5a2 commit f2ed09f
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 248 deletions.
38 changes: 0 additions & 38 deletions app/presenters/worldwide_office_presenter.rb

This file was deleted.

35 changes: 0 additions & 35 deletions app/views/content_items/worldwide_office.html.erb

This file was deleted.

5 changes: 0 additions & 5 deletions config/govuk_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,6 @@ working_group_7: '/government/groups/veterans-welfare-service'
working_group_8: '/government/groups/uk-national-screening-committee-uk-nsc'
working_group_9: '/government/groups/uk-council-for-child-internet-safety-ukccis'

worldwide_office: '/world/organisations/british-consulate-general-barcelona/office/british-consulate-general-barcelona'
worldwide_office_without_access_details: '/world/organisations/british-consulate-general-alexandria/office/consulate-general-alexandria'
worldwide_office_with_many_locations: '/world/organisations/british-embassy-paris/office/british-embassy'
worldwide_office_with_non_default_logo: '/world/organisations/department-for-business-and-trade-ecuador/office/uk-trade-investment-ecuador'

worldwide_organisation: '/world/organisations/british-embassy-madrid'
worldwide_organisation_translation: '/world/organisations/british-embassy-madrid.es'
worldwide_organisation_with_secondary_corporate_info_pages: '/world/organisations/british-deputy-high-commission-hyderabad'
Expand Down
111 changes: 0 additions & 111 deletions test/integration/worldwide_office_test.rb

This file was deleted.

58 changes: 0 additions & 58 deletions test/presenters/worldwide_office_presenter_test.rb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class WorldwideOrganisation::LinkedContactPresenterTest < ActiveSupport::TestCase
setup do
content_item = govuk_content_schema_example("worldwide_office", "worldwide_office")
content_item = govuk_content_schema_example("worldwide_organisation", "worldwide_organisation")

@contact_content_item = content_item.dig("links", "contact").first
end
Expand Down

0 comments on commit f2ed09f

Please sign in to comment.