-
Notifications
You must be signed in to change notification settings - Fork 14
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
Remove some cookies set by the checkout #6714
Conversation
Size Change: 0 B Total Size: 1.9 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
) | ||
case _: SupporterPlus | _: TierThree | _: DigitalPack => | ||
List(SessionCookie("GU_AF1", now.plusDays(1).getMillis.toString)) | ||
|
||
case p: Paper if p.productOptions.hasDigitalSubscription => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is pre-existing but we give ad-free to all paper subscribers now, not just those with the digipack add on
Accepted(createSubscriptionResponse.asJson) | ||
.withCookies(cookies: _*) | ||
.discardingCookies(discardIncompleteCheckoutCookie), | ||
result.value.flatMap { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I refactored this because there was a warning about nested stateful monads. I think it looks clearer this way as well.
I've removed the following as they're no longer used: * gu_recurring_contributor * gu_digital_subscriber * gu.contributions.recurring.contrib-timestamp.<billing period> I've refactored the cookie setting code a bit to consolidate things and make it clear where products set the same cookie(s).
44f1c56
to
9f2357c
Compare
…emove-cookies-set-by-checkout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your changes look good to me @rupertbates 👍
Seen on PROD (created by @tjmw and merged by @rupertbates 9 minutes and 51 seconds ago)
Sentry Release: support-client-side, support |
What are you doing in this PR?
I've removed the following as they're no longer needed:
gu_recurring_contributor
gu_digital_subscriber
gu.contributions.recurring.contrib-timestamp.<billing period>
I've refactored the cookie setting code a bit to consolidate things and make it clear where products set the same cookie(s).
Trello Card
Why are you doing this?
These cookies are no longer needed.
How to test
Put through a purchase, see that these cookies are no longer set.