Page MenuHomePhabricator

Converts SearchKit batch import mappedRow keys to match standard import format.
Open, Needs TriagePublic

Description

To be done upstream. In order for T386031: Automate some Direct Mail white mail coding to work for SK batch imports, the mappedRow format returned by SK batch imports needs to match the format used for normal imports. We get Contribution but instead of SoftCreditContact (which is actually an array of soft credit contacts), we get Contribution_ContributionSoft_contribution_id_01 or similar.

SoftCreditContact is all we need, as we only select contacts in SK batch imports (which adds contact_id to Contribution), not create them and we don't handle any other entities on the import hook. But it would be nice to find a more general solution here.

Details

Event Timeline

As a temp measure, @eileen and I have agreed to set is_major_gift to true for all contributions via batch import.

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

[wikimedia/fundraising/crm@master] Set all batch import is_major_gift = true

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

Change #1271973 merged by Eileen:

[wikimedia/fundraising/crm@master] Set all batch import is_major_gift = true

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