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

Handle old-style /goverment/uploads routes #1677

Merged
merged 1 commit into from
Mar 9, 2020
Merged

Conversation

thomasleese
Copy link
Contributor

@thomasleese thomasleese commented Mar 6, 2020

This is currently handled by Whitehall but we're trying to move away from Whitehall being a frontend application. The next best place for this bit of code seems to be Government Frontend.

The code itself is used to handle assets which are still being requested on their own URL before we migrated all assets over to Asset Manager.

Once this is merged and deployed, I will set up a route in Special Route Publisher which sends requests prefixed with /government/uploads to Government Frontend.

Trello Card

This is currently handled by Whitehall but we're trying to move away
from Whitehall being a frontend application. The next best place for
this bit of code seems to be Government Frontend.

https://github.com/alphagov/whitehall/blob/master/test/functional/asset_manager_redirect_controller_test.rb

The code itself is used to handle assets which are still being requested
on their own URL before we migrated all assets over to Asset Manager.
@bevanloon bevanloon temporarily deployed to government-f-assets-red-qj58gz March 6, 2020 15:21 Inactive
@thomasleese thomasleese requested a review from cbaines March 9, 2020 09:44
@thomasleese thomasleese merged commit e4c9a2e into master Mar 9, 2020
@thomasleese thomasleese deleted the assets-redirect branch March 9, 2020 09:53
thomasleese added a commit to alphagov/whitehall that referenced this pull request Mar 9, 2020
This is now handled by government-frontend to reduce the number of
requests going to Whitehall.

alphagov/government-frontend#1677
thomasleese added a commit to alphagov/whitehall that referenced this pull request Mar 9, 2020
This is now handled by government-frontend to reduce the number of
requests going to Whitehall.

alphagov/government-frontend#1677
thomasleese added a commit to alphagov/whitehall that referenced this pull request Mar 9, 2020
This is now handled by government-frontend to reduce the number of
requests going to Whitehall.

alphagov/government-frontend#1677
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants