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: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
imported>Cstone
No edit summary
imported>Wfan
Line 3: Line 3:


https://phabricator.wikimedia.org/T125272
https://phabricator.wikimedia.org/T125272
* local test link: <nowiki>https://localhost:9002/index.php/Special:EmailPreferences/emailPreferences?contact_hash=2261039855&contact_id=6</nowiki>
* local Json response test link: <nowiki>https://localhost:9005/rest.php?entity=civiproxy&action=getpreferences&key=SITE_KEY&version=3&json=1&api_key=API_KEY&hash=2261039855&contact_id=6</nowiki>
* Queue consume
# /src/civi-sites/wmff/drupal/sites/default/civicrm/extensions/wmf-civicrm/CRM/Queue/PreferencesQueueConsumer.php
# /src/civi-sites/wmff/drupal/sites/default/civicrm/extensions/wmf-civicrm/api/v3/Preferencesqueue/Consume.php
# /src/civi-sites/wmff/drupal/sites/default/civicrm/extensions/wmf-civicrm/api/v3/Preferences/Create.php
* Documentation of Email Preference: <nowiki>https://docs.google.com/document/d/1wKtGxJn06bs6OGAFV7DKUfVw2salKdU_NAUn5SMGks0/edit#</nowiki>
* Design: <nowiki>https://design.bytrilogy.com/wikimedia-email-preference-center?frequency=cat&button=&s=#epc-form-col-content-salutation-email-edit</nowiki>
* Css file: src/email-pref-ctr/extensions/DonationInterface/modules/css/emailPreferences.css
* Cmd to consume email preference update queue: drush cvapi Preferencesqueue.consume time_limit=1000 max_batch_size=1


== Civiproxy ==
== Civiproxy ==

Revision as of 00:11, 31 January 2022

Overview

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

https://phabricator.wikimedia.org/T125272

  • local test link: https://localhost:9002/index.php/Special:EmailPreferences/emailPreferences?contact_hash=2261039855&contact_id=6
  • local Json response test link: https://localhost:9005/rest.php?entity=civiproxy&action=getpreferences&key=SITE_KEY&version=3&json=1&api_key=API_KEY&hash=2261039855&contact_id=6
  • Queue consume
  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
  • Documentation of Email Preference: https://docs.google.com/document/d/1wKtGxJn06bs6OGAFV7DKUfVw2salKdU_NAUn5SMGks0/edit#
  • Design: https://design.bytrilogy.com/wikimedia-email-preference-center?frequency=cat&button=&s=#epc-form-col-content-salutation-email-edit
  • Css file: src/email-pref-ctr/extensions/DonationInterface/modules/css/emailPreferences.css
  • Cmd to consume email preference update queue: drush cvapi Preferencesqueue.consume time_limit=1000 max_batch_size=1

Civiproxy

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

Link to test from docker add in key and hash from a test contact: https://localhost:9005/rest.php?entity=civiproxy&action=getpreferences&key=SITE_KEY&version=3&json=1&api_key=API_KEY&hash&contact_id=