Page MenuHomePhabricator

Show which contacts have double opted in / still need double opt in in Acoustic
Closed, ResolvedPublic

Description

We need to be able to send Austria email #2 on Jan 28 (and future emails for other countries and Austria). We might need a field in Acoustic specifically for this purpose as just using opted out won't work here (we want to email these contacts, so we can't opt them out yet).

Note: We'll need to set the modified_date for any contacts who do have a double opt in activity, to ensure they are uploaded to Acoustic.

Event Timeline

Lars moved this task from Triage to Sprint +1 on the Fundraising-Backlog board.
Lars removed Lars as the assignee of this task.Jan 16 2026, 7:02 PM

Hello! Checking in on the status of this task as I'm hoping to create the query for Austria double optin email 2 with 1-2 days buffer from the send date.

@NNgu-WMF Not done yet, but will definitely be done with a couple days buffer for the send date.

Change #1228970 had a related patch set uploaded (by Lars SG; author: Lars SG):

[wikimedia/fundraising/tools@master] Add double_opt_in_activity to Acoustic export

https://gerrit.wikimedia.org/r/1228970

Change #1228970 merged by jenkins-bot:

[wikimedia/fundraising/tools@master] Add double_opt_in_activity to Acoustic export

https://gerrit.wikimedia.org/r/1228970

@NNgu-WMF Cutting this one a bit close as it took a while to get reviewed, but I have deployed this and it will be filled in Acoustic around 4AM UTC tomorrow for all contacts who have double opted-in (about 6600).

has_double_opt_in_activity is the field in Acoustic, which is there now but empty. I've named it this to make it clear that this field does not indicate if a contact is opted in or opted out, it only shows if they have the double opt-in activity. If they subsequently opt out, this field will still be true, but of course they will be opted out so we can't email them.

Thanks Lars! Will the field say "true" or "yes"? Just wanted to know how to phrase the query.

AND has_double_opt_in_activity is not equal to True?
or

  • AND has_double_opt_in_activity is not equal to Yes?**

@NNgu-WMF It's Yes/No same as is_orphan, AF_has_active_recurring_donation, etc

Damilare set Final Story Points to 2.

@NNgu-WMF Just in case it matters for you, expect it will take a couple more hours for that data to be filled.

@NNgu-WMF Failed overnight, looking into it and will update you.

Oh no! Ok, let us know if we need to hold on the email. cc @ppenloglou

Change #1233823 had a related patch set uploaded (by Lars SG; author: Lars SG):

[wikimedia/fundraising/tools@master] Export "Yes"/"No" rather than 1/0 to Acoustic for double opt in

https://gerrit.wikimedia.org/r/1233823

Change #1233823 merged by jenkins-bot:

[wikimedia/fundraising/tools@master] Export "Yes"/"No" rather than 1/0 to Acoustic for double opt in

https://gerrit.wikimedia.org/r/1233823

@NNgu-WMF Looks like I didn't quite get it right, but I've just added a patch to fix it for tonight. I will check it later today in ~8 hours and confirm if it has worked.

@NNgu-WMF Now done, we have the double out contacts noted in Acoustic. Note the field is now called double_opt_in_activity rather than has_double_opt_in_activity.