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

Send domain registration email even if load_template_apps fails #35552

Closed
wants to merge 1 commit into from

Conversation

nospame
Copy link
Contributor

@nospame nospame commented Dec 19, 2024

Product Description

Theoretically a user could now activate their account without template apps being setup, which would be slightly weird but shouldn't break anything.

Technical Summary

Fixes an issue where a user would not receive their account confirmation email if the task to populate template apps failed, by using a group for the template app tasks, instead of a chord where sending the email relies on the template app tasks. A more involved solution would be to identify and resolve the cause of the template app task's failing, but I'm calling that out of scope here.

Safety Assurance

Doesn't change functionality in any meaningful way, just makes the registration confirmation email not have to wait on a set of template app tasks.

Safety story

Tested on staging to see that registration confirmation emails still work.

Automated test coverage

There is decent automated testing for the registration app generally, but not specifically for sending this email.

QA Plan

Not planning QA.

Rollback instructions

  • This PR can be reverted after deploy with no further considerations

Labels & Review

  • Risk label is set correctly
  • The set of people pinged as reviewers is appropriate for the level of risk of the change

Theoretically a user could activate their account before their template apps are setup, which would be slightly weird but shouldn't break anything
@nospame nospame added the product/invisible Change has no end-user visible impact label Dec 19, 2024
@dimagimon dimagimon added the Risk: High Change affects files that have been flagged as high risk. label Dec 19, 2024
@orangejenny
Copy link
Contributor

which would be slightly weird but shouldn't break anything

Was it not feasible to wait on the tasks and then check the result before emailing? I agree it won't break anything if the user gets the email before the template apps are loaded, but it would be good to minimize weirdness.

@nospame
Copy link
Contributor Author

nospame commented Dec 19, 2024

which would be slightly weird but shouldn't break anything

Was it not feasible to wait on the tasks and then check the result before emailing? I agree it won't break anything if the user gets the email before the template apps are loaded, but it would be good to minimize weirdness.

@orangejenny My understanding is that's what the chord is trying to do (along with passing any return value into the callback, which is unnecessary here). I don't see that the task gets explicitly retried but in testing I did see that the template apps do eventually get created. Theoretically if the task fails but gets retried and eventually succeeds, the callback should receive the success response, so I'm honestly not sure what's happening there.

@jingcheng16
Copy link
Contributor

Agree identifying and resolving the cause of the template app task's failing out of scope, but I don't think let user register new domain without loading template app is the right fix.
Can you bring it up in the product meeting, or #saas-product channel, let managers decide when to pick it up and apply a proper fix?

@jingcheng16
Copy link
Contributor

I get curious and looked into it yesterday, put up a PR: #35572

@nospame
Copy link
Contributor Author

nospame commented Jan 1, 2025

Should be unnecessary with retries implemented in #35572

@nospame nospame closed this Jan 1, 2025
@nospame nospame deleted the em/reg-email-on-template-apps-failure branch January 1, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product/invisible Change has no end-user visible impact Risk: High Change affects files that have been flagged as high risk.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants