You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Fundraising/External-facing/E-mail preferences

From Wikitech-static
< Fundraising
Revision as of 20:12, 1 March 2022 by imported>Cstone
Jump to navigation Jump to search

Overview

The email preference center is a standalone wiki that uses civiproxy to talk to civicrm.

https://phabricator.wikimedia.org/T125272

  1. /src/civi-sites/wmff/drupal/sites/default/civicrm/extensions/wmf-civicrm/CRM/Queue/PreferencesQueueConsumer.php
  2. /src/civi-sites/wmff/drupal/sites/default/civicrm/extensions/wmf-civicrm/api/v3/Preferencesqueue/Consume.php
  3. /src/civi-sites/wmff/drupal/sites/default/civicrm/extensions/wmf-civicrm/api/v3/Preferences/Create.php

File paths

  • HTML: src/email-pref-ctr/extensions/DonationInterface/email_forms/templates/emailPreferences.html.mustache
  • CSS: src/email-pref-ctr/extensions/DonationInterface/modules/css/emailPreferences.css
  • JS: src/email-pref-ctr/extensions/DonationInterface/modules/js/ext.donationInterface.emailPreferences.js

Queue

drush cvapi Preferencesqueue.consume time_limit=1000 max_batch_size=1

Unit Test

./vendor/bin/phpunit --filter testEmailPreferenceCenterUpdateApi

CiviCRM

Civiproxy

Official documentation: https://docs.civicrm.org/civiproxy/en/latest/

Deploying