Page MenuHomePhabricator

Add daf_contact_id to Acoustic export
Open, HighPublic

Event Timeline

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

[wikimedia/fundraising/crm@master] Add triggers from relationship table to set contact modified_date

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

Lars moved this task from Backlog to Doing on the Fundraising Sprint: Mediocre Ikea Kit board.
Lars added a subscriber: Eileenmcnaughton.

@Eileenmcnaughton We discussed adding a modified_date update on changes to the relationship table. I don't think this would actually make sense upstream. The existing triggers now in core are just on email, phone, address, IM and website, plus custom fields, not on contributions, recurs, activities, etc. The activity ones I saw are actually case related and all the others are our own (though mostly we rely on wmf_donor). So I think I'll just make the change for us.

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

[wikimedia/fundraising/tools@master] Add has_daf_id to Acoustic export

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

Change #1310679 merged by Eileen:

[wikimedia/fundraising/crm@master] Add triggers from relationship table to set contact modified_date

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

Change #1310681 merged by jenkins-bot:

[wikimedia/fundraising/tools@master] Add daf_contact_id to Acoustic export

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

Turns out we also have DAFs that are the same contact as the individual donor (when do DAF name is provided, we just put the DAF donation on the individual), so we'll need to also include those in this new field. These are about half of the total DAF donations (Gift Type = Donor Advised Fund). We also have ~400 DAF org contacts who have soft credits to individuals but no relationship, investigating this.

Turns out most of those 400 are Anonymous, there are only a handful from the last year that are missing relationships, so I think this is ignorable.

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

[wikimedia/fundraising/tools@master] Also fill daf_contact_id with the contact's own id when they have a DAF gift

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

Lars renamed this task from Add has_daf_id to Acoustic export to Add daf_contact_id to Acoustic export.Wed, Aug 5, 8:46 PM
Lars triaged this task as High priority.Thu, Aug 6, 7:50 PM
Lars moved this task from Backlog to Features on the FR-MGFE board.

Change #1321630 merged by Eileen:

[wikimedia/fundraising/tools@master] Also fill daf_contact_id with the contact's own id when they have a DAF gift

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