Page MenuHomePhabricator

Update getMergedTo to use source_record_id if not found in first pass
Closed, ResolvedPublic

Description

Upstream follow up on T429532: Add source_record_id to merge activities that will enable T406771: Develop process to prevent direct mail being sent to long-deleted cids. An index on source_record_id already exists in core, so this will be a fast query and only run when we can't find the cid in the first query (which we'll need to maintain for backwards compat as others won't backfill, though potentially we could consider doing this query first).

Event Timeline

Upstream patch to use source_record_id as a fallback in getMergedTo

Change #1313442 had a related patch set uploaded (by Lars SG; author: Lars SG):

[wikimedia/fundraising/crm@master] Use source_record_id for Contact::getMergedTo when merged contact has been deleted

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

Change #1313442 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Use source_record_id for Contact::getMergedTo when merged contact has been deleted

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

Another upstream PR to use getMergedTo in civiimport.

XenoRyet set Final Story Points to 2.