Create Affiliate Product Prices cache - #29247
Merged
Merged
Conversation
andrewHEguardian
force-pushed
the
ahe/affiliate-prices-s3
branch
from
September 23, 2026 10:33
ad358d1 to
688b47f
Compare
Contributor
andrewHEguardian
marked this pull request as ready for review
September 23, 2026 16:07
SolomonTheGuardian
approved these changes
Sep 24, 2026
|
Seen on ADMIN-PROD (merged by @andrewHEguardian 8 minutes ago)
|
|
Seen on FRONTS-PROD (merged by @andrewHEguardian 9 minutes and 8 seconds ago)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this change?
Adds a lifecycle event to poll an S3 file of the latest affiliate product prices and cache in memory.
The fetching is behind a feature switch, as the product data is not ready in production.
What is the value of this and can you measure success?
We can use this cache to inject the latest prices into The Filter articles. This saves editorial having to continually manually check and update prices. The latest prices are fetched by a lambda.
Screenshots
The actual UI work is still to come, so I tested by appending the latest price to the product URL and checking its presence - see the "Some(£17)" at the end of the link preview
Incidentally tested the polling because the bucket permissions were incorrect - but by the error message we can see it run every 5 minutes

Checklist
data/databasefiles generated by tests are committed with this PR (the tests will fail in CI if you've forgotten to do this)