Page MenuHomePhabricator

Consume new messages from Email Preferences form
Open, MediumPublic

Description

Messages sent to the email preferences queue in T268510 may have a different format from current opt-in / unsubscribe messages. Create a job to pull these messages from the queue, validate them, and update the contact record in CiviCRM.

Event Timeline

DStrine triaged this task as Medium priority.Mar 31 2021, 4:05 PM
DStrine removed a project: Epic.

Change 680119 had a related patch set uploaded (by AndyRussG; author: AndyRussG):

[wikimedia/fundraising/crm@master] E-mail preferences center queue consumer

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

Just to note: currently not ingressing country since, if I understand correctly, it remains to be determined if a new country selection by the user should cause a new address (empty, except for country ) to be created.

Regarding country, I think the Civi way to store an additional address would be to add a new 'location type' along with the existing Home, Billing, etc, then store the prefs center country there.

I think you can use a .mgd file to create the new location type when your civi extension is installed.

The syntax would look something like this: https://phabricator.wikimedia.org/diffusion/WFCG/browse/master/drupal/sites/default/civicrm/extensions/org.wikimedia.omnimail/activitytypes.mgd.php
only instead of the entity being 'option_value' it would be 'location_type'

Change 682190 had a related patch set uploaded (by AndyRussG; author: AndyRussG):

[wikimedia/fundraising/dev@master] Set up SmashPig database

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

Change 682349 had a related patch set uploaded (by AndyRussG; author: AndyRussG):

[wikimedia/fundraising/crm@master] [WIP] E-mail pref ctr queue consumer using api

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

Change 680119 abandoned by AndyRussG:

[wikimedia/fundraising/crm@master] E-mail preferences center queue consumer

Reason:

Now using the approach in I8aae6d9b instead. Thanks!

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

Change 682190 merged by AndyRussG:

[wikimedia/fundraising/dev@master] Set up SmashPig database

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

Change 682349 merged by AndyRussG:

[wikimedia/fundraising/crm@master] E-mail pref ctr queue consumer using api

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

Change 685033 had a related patch set uploaded (by Ejegg; author: Ejegg):

[mediawiki/extensions/DonationInterface@master] Make source_type field configurable

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

Change 685033 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Make source_type field configurable

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