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.
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T125272 Epic: Create Preference Center for donors to manage email subscription preferences | |||
Resolved | AndyRussG | T268511 Consume new messages from Email Preferences form |
Event Timeline
Change 680119 had a related patch set uploaded (by AndyRussG; author: AndyRussG):
[wikimedia/fundraising/crm@master] E-mail preferences center queue consumer
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
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
Change 680119 abandoned by AndyRussG:
[wikimedia/fundraising/crm@master] E-mail preferences center queue consumer
Reason:
Now using the approach in I8aae6d9b instead. Thanks!
Change 682190 merged by AndyRussG:
[wikimedia/fundraising/dev@master] Set up SmashPig database
Change 682349 merged by AndyRussG:
[wikimedia/fundraising/crm@master] E-mail pref ctr queue consumer using api
Change 685033 had a related patch set uploaded (by Ejegg; author: Ejegg):
[mediawiki/extensions/DonationInterface@master] Make source_type field configurable
Change 685033 merged by jenkins-bot:
[mediawiki/extensions/DonationInterface@master] Make source_type field configurable
Change 687629 had a related patch set uploaded (by Jgleeson; author: Jgleeson):
[wikimedia/fundraising/crm@master] Add in defaults for email-pref-ctr queue consume params.
Change 687629 merged by jenkins-bot:
[wikimedia/fundraising/crm@master] Add in defaults for email-pref-ctr queue consume params.