Page MenuHomePhabricator

Clean up emails where contact has two of the same type and address after backfilling location types
Closed, ResolvedPublicBUG REPORT

Event Timeline

Ha, I think this is caused by backfill maybe, checking since not all having this issue like https://civicrm.wikimedia.org/civicrm/contact/view?reset=1&cid=8983235

Oh yes, we didn't check if there was an existing email of that type on the contact. Let's do a clean up after we do the next step for Billing and Main type emails.

Lars renamed this task from Overwirte the original to low confidence email creating duplicate emails to Clean up emails where contact has two of the same type and address after backfilling location types.May 2 2026, 4:04 PM

We should use the logic in deduper Email::Clean so we preserve any data we might want to keep like snoozes and such.

XenoRyet triaged this task as Medium priority.May 11 2026, 7:46 PM

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

[wikimedia/fundraising/crm@master] Clean up emails where a contact has two of the same type and address

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

Change #1287487 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Clean up emails where a contact has two of the same type and address

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

@AMJohnson These have been cleaned up (fully this time). I'll do a quick check in a week to make sure we aren't creating any more, but this should be resolved.

XenoRyet set Final Story Points to 2.