You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Details
- Add onboarding email flow for new users 3 days after they logged in
(FOR PROD ONLY)
- Add backend tests for it since it is hard to test just for prod
Note:
An old user is defined to be created before the release of the
onboarding email date
- Scenario 1: old user haven’t login since forever (no last_login_at)
- Scenario 2: old user logged in recently (last_login_at present)
- Scenario 3: new user failed to login —> then login at a later time
- Scenario 4: new user login again after (last_login_at present)
Only scenario 3 will send the onboarding email
## Before Release
- [x] Make sure the pipe is set up, tested and published
- [x] Add the `ONBOARDING_EMAIL_WEBHOOK_URL` on AWS before deploying
- [x] Edit code back to `isProd`
## Tests
- [x] Old user who hasn't login since 03/10 will not trigger the webhook
- [x] Old user who logged in recently will not trigger the webhook
- [x] New user after 03/10 will trigger the webhook, subsequent logins
will not trigger
0 commit comments