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

Use a placeholder image from asset-manager #1669

Merged
merged 1 commit into from
Mar 2, 2020

Conversation

thomasleese
Copy link
Contributor

In the past this linked to an image served by Whitehall, but because of the way Rails generates hashes for assets, we can't guarantee that this URL will always exist. This hasn't been a problem in the past because we've been able to put an unhashed version of the image on the Whitehall machines, but since moving to AWS the machines can be recreated at any moment and won't have the file.

To solve this problem I've uploaded the file to Asset Manager and we can link to that instead. Ideally, we wouldn't depend on a file in a different application, but this solves the problem for now.

This is similar to alphagov/collections#1522.

Trello Card

In the past this linked to an image served by Whitehall, but because of
the way Rails generates hashes for assets, we can't guarantee that this
URL will always exist. This hasn't been a problem in the past because
we've been able to put an unhashed version of the image on the Whitehall
machines, but since moving to AWS the machines can be recreated at any
moment and won't have the file.

To solve this problem I've uploaded the file to Asset Manager and we can
link to that instead. Ideally, we wouldn't depend on a file in a
different application, but this solves the problem for now.
@bevanloon bevanloon temporarily deployed to government-f-placeholde-ahi6vs March 2, 2020 10:22 Inactive
Copy link
Contributor

@MahmudH MahmudH left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@thomasleese thomasleese merged commit cba4f18 into master Mar 2, 2020
@thomasleese thomasleese deleted the placeholder-image-asset-manager branch March 2, 2020 11:40
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