Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Remove travel advice rendering code #3426

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

leenagupte
Copy link
Contributor

@leenagupte leenagupte commented Nov 18, 2024

Trello card

Dependent on:

  1. Move Travel Advice country pages frontend#4225
  2. Change rendering app to frontend travel-advice-publisher#2059

What's changed?

Removes the rendering code for travel advice country pages.

Why?

Travel advice rendering is being moved to frontend as of PR alphagov/frontend#4225 so this code will be obsolete.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3426 November 18, 2024 18:04 Inactive
@leenagupte leenagupte changed the title [WIP] Remove travel advice rendering code [WIP] [DO NOT MERGE] Remove travel advice rendering code Nov 18, 2024
@leenagupte leenagupte force-pushed the remove-travel-advice-rendering-code branch from d26026a to 87957d8 Compare November 22, 2024 14:41
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3426 November 22, 2024 14:42 Inactive
@leenagupte leenagupte force-pushed the remove-travel-advice-rendering-code branch from 87957d8 to b9acc6b Compare November 22, 2024 16:21
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3426 November 22, 2024 16:21 Inactive
@leenagupte leenagupte requested a review from KludgeKML November 22, 2024 16:24
@leenagupte leenagupte marked this pull request as ready for review November 22, 2024 16:25
@leenagupte leenagupte changed the title [WIP] [DO NOT MERGE] Remove travel advice rendering code [DO NOT MERGE] Remove travel advice rendering code Nov 22, 2024
config/routes.rb Outdated
@@ -30,7 +30,6 @@

get "*path(.:locale)(.:format)" => "content_items#show",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if the only format allowed was atom, we can also remove the optional format from line 31?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DONE! And fixed up.

Copy link
Contributor

@KludgeKML KludgeKML left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small note, but otherwise looks good!

Also removes example urls from dev controller.
This component was only being used by the travel advice pages and is no
longer needed. It has been moved to frontend.
Atom feeds are only available on travel advice pages. As these pages are
being moved to frontend, the entire atom feed set-up can be removed as
well.

Also updates the controller tests to remove travel advice examples
Copy link
Contributor

@KludgeKML KludgeKML left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants