Page MenuHomePhabricator

Fix Matching Gift policy sync
Closed, ResolvedPublic

Description

  • Add debug logging to show which searches are causing things like the "Honda COVID 19 matching" program to get pulled in as parent companies.
  • Use raw_id instead of online_resources id to create link for more info.

Event Timeline

@Ejegg have you already started on this? If not, I'd love to pick it up.

Got the new id, now just looking at logging.

Command to delete the ones created from the old job:

for i in `cat /tmp/mgext-del-cids`
do
  drush cvapi contact.delete id=$i skip_undelete=1
done

@mepps I dunno if we need the logging, now that we've got the categories correctly added to the settings!

@Ejegg great! I'll put the patch up and I can confirm the api call is correct.

Change 614835 had a related patch set uploaded (by Mepps; owner: Mepps):
[wikimedia/fundraising/crm@master] Use raw_id instead of online_resources id to create link for more info matching-gifts

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

Change 614835 merged by jenkins-bot:
[wikimedia/fundraising/crm@master] Use raw_id instead of online_resources id to create link for more info matching-gifts

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

Running this again it hang on company_id 15000857. The bad string comes from when we are trying to find a matching company by organization_name, line 155 of CRM_MatchingGifts_Synchronizer.

Change 615261 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[wikimedia/fundraising/crm@master] Avoid warning when no 'online_resources' in MG sync

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

Change 615262 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[wikimedia/fundraising/crm@master] MG sync: use API v4 to find organizations

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

Change 615261 merged by jenkins-bot:
[wikimedia/fundraising/crm@master] Avoid warning when no 'online_resources' in MG sync

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

Change 615262 merged by jenkins-bot:
[wikimedia/fundraising/crm@master] MG sync: use API v4

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