-
Notifications
You must be signed in to change notification settings - Fork 308
Add support for queuing emails without a participant linked #4547
Comments
How about a stub participant like we do for accounts elsewhere? |
Hmm, that could work. I'm on the edge here though, there are pros and cons to this approach. Upside Schema + code is simplified in some places - we don't end up implementing the stuff that is common, can reuse some features. Downside We'll need special handling in a lot of places to differentiate claimed participants from unclaimed participants. It seems easier for bugs to creep in if we're not explicitly stating that a participant record could be half-baked. For example, the changes we'll need to make if we go with this approach:
I see how this approach made sense under Gittip/Gratipay 1 - A lot of the core features related to users who hadn't signed up yet (pledging etc), and hence unclaimed participants were closer to the mainstream usage rather than being an exception. I'm not sure if we should continue with that pattern for auth, I do see benefits in being explicit about the inexistence of an actual user record to deal with. This posts explains my thoughts better: http://rdingwall.com/2009/11/20/the-trouble-with-soft-delete/ ('soft create' is what we're dealing with) |
@whit537 (pinging so that this appears in your notifications) thoughts? |
From http://rdingwall.com/2009/11/20/the-trouble-with-soft-delete/:
I think stub participants are valid and active. We are actively initiating package claims for them, no? And over on #4598 we want to start placing credit card holds for them as well. |
We want to send them email: #4548. That seems active. |
Honestly I'm still drawn to the idea of using Lines 311 to 325 in 139dca6
|
Because then we get stub participants for free: gratipay.com/gratipay/models/participant/__init__.py Lines 268 to 281 in 139dca6
|
This is a requirement for sign-up via email.
Our
email_queue
currently only supports queuing emails linked to a participant. Extend this to support queuing emails with only an email address.If a linked participant is present, stick to throttling based on
participant_id
. If only email_address is provided, throttle based onemail_address
.The text was updated successfully, but these errors were encountered: