Skip to content

Create Affiliate Product Prices cache - #29247

Merged
andrewHEguardian merged 7 commits into
mainfrom
ahe/affiliate-prices-s3
Sep 25, 2026
Merged

andrewHEguardian merged 7 commits into
mainfrom
ahe/affiliate-prices-s3

Conversation

@andrewHEguardian

@andrewHEguardian andrewHEguardian commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

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

image

Incidentally tested the polling because the bucket permissions were incorrect - but by the error message we can see it run every 5 minutes
image

Checklist

@andrewHEguardian andrewHEguardian added the feature Departmental tracking: work on a new feature label Sep 22, 2026
@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

@andrewHEguardian
andrewHEguardian marked this pull request as ready for review September 23, 2026 16:07
@andrewHEguardian
andrewHEguardian requested a review from a team as a code owner September 23, 2026 16:07
Comment thread common/app/common/configuration.scala Outdated
@andrewHEguardian
andrewHEguardian merged commit 78aa5d7 into main Sep 25, 2026
11 checks passed
@andrewHEguardian
andrewHEguardian deleted the ahe/affiliate-prices-s3 branch September 25, 2026 10:39
@gu-prout

gu-prout Bot commented Sep 25, 2026

Copy link
Copy Markdown

Seen on ADMIN-PROD (merged by @andrewHEguardian 8 minutes ago)

@gu-prout

gu-prout Bot commented Sep 25, 2026

Copy link
Copy Markdown

Seen on FRONTS-PROD (merged by @andrewHEguardian 9 minutes and 8 seconds ago)

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

Labels

feature Departmental tracking: work on a new feature Seen-on-ADMIN-PROD Seen-on-FRONTS-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants