Skip to content

Comments

Update the comment for the ad free cookie expiry in user-features#3267

Open
cemms1 wants to merge 1 commit intomainfrom
cemms1/update-ad-free-cookie-comment
Open

Update the comment for the ad free cookie expiry in user-features#3267
cemms1 wants to merge 1 commit intomainfrom
cemms1/update-ad-free-cookie-comment

Conversation

@cemms1
Copy link

@cemms1 cemms1 commented Sep 16, 2025

What does this change?

Updates the comment referencing the two day expiry for the ad free cookie in user features

It used to point to the client-side code in frontend as this is where it was copied from.
It now references the dotcom-rendering code since this is the code most likely to be running in the browser.

Why

We don't use frontend to render our pages much any more and as such, we rarely run the client-side code.

To help future developers understand what the code is doing in various places in the codebase, it is more helpful to direct them to the code that is most likely to be running on users' machines (ie the better source of truth) rather than the reference of where the code originally came from.

@cemms1 cemms1 marked this pull request as ready for review September 16, 2025 09:42
@cemms1 cemms1 requested a review from a team as a code owner September 16, 2025 09:42
@cemms1 cemms1 requested a review from arelra September 16, 2025 09:42
Copy link
Contributor

@rBangay rBangay left a comment

Choose a reason for hiding this comment

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

👍

ensuring the comment points to our current source of truth for user features since we no longer run much client side code in frontend any more
@cemms1 cemms1 force-pushed the cemms1/update-ad-free-cookie-comment branch from 1423861 to da46b34 Compare September 17, 2025 08:53
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.

2 participants