CruGlobal/mpdx — pull request #105 by draffensperger (2014-08-11 17:47:46+00:00)
Title: MPDX-186 Match TntMPD contacts to donor accounts with leading zeros

This is one step toward MPDX-186 "Refine how merging works when importing contacts."

I noticed from my own data that former and current staff members have leading zeros in their donor account ids when imported into MPDX, e.g. "000123456". The smaller number corresponds to their staff account number, and there seemed to be a couple other cases of leading zeros for others accounts.

However, the TntMPD XML export just has those as raw numbers like 123456, so before those contacts weren't matching to existing contacts in MPDX that were imported by donation services. Below is a fix for that with a matching spec.

The number of leading zeros seem to always bring the donor number to the length of 9 characters. I can imagine some day that would clock over to 10 chars, but hopefully by then nobody will be importing data into MPDX from TntMPD!

I also removed the old CSV importer which is no longer used to avoid confusion.