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

Discount expiry notifier - Create state machine #2619

Merged
merged 34 commits into from
Jan 16, 2025

Conversation

david-pepper
Copy link
Contributor

@david-pepper david-pepper commented Jan 9, 2025

What does this change?

Add a new state machine that will contain functions that orchestrate a notification to customers with a discount that is soon to expire.

image

Discounted Subs Notifications - Proposed Process flow

Notes

Empty lambda is present in these changes. Seems like this is the easy way to introduce a new state machine in support -service-lambdas. This lambda (getSubsWithExpiringDiscounts) will be the fleshed out in the next piece of work.

@david-pepper david-pepper marked this pull request as ready for review January 13, 2025 16:35
cdk/bin/cdk.ts Outdated
@@ -287,3 +288,11 @@ new UserBenefits(app, 'user-benefits-PROD', {
supporterProductDataTable:
'supporter-product-data-tables-PROD-SupporterProductDataTable',
});
new DiscountExpiryNotifier(app, 'discount-expiry-notifier-CODE', {
stack: 'membership',
Copy link
Contributor

Choose a reason for hiding this comment

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

Super minor comment is that I just remembered that we'd prefer going forward to use support rather than membership as a stack name.

It would mean updating those values where they come up (cdk and riff raff) and redeploy.

This is not a "must do".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks

Copy link
Contributor

@AndreaDiotallevi AndreaDiotallevi left a comment

Choose a reason for hiding this comment

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

Looking good - just a super minot comment on the stack name

@david-pepper david-pepper merged commit bd7c9d6 into main Jan 16, 2025
49 checks passed
@david-pepper david-pepper deleted the create-discount-expiry-notifier-state-machine branch January 16, 2025 12:07
@david-pepper david-pepper changed the title Create discount expiry notifier state machine Discount expiry notifier - Create state machine Jan 23, 2025
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