Page MenuHomePhabricator

Benefactor Page Listing Custom field
Closed, ResolvedPublic

Description

Screen Shot 2021-04-27 at 3.10.25 PM.png (666×900 px, 63 KB)

Now that there are a few of us updating this section in Civi within the MGFE team, we would love to have a field that adds the date when the Listed on Benefactor Page as field is updated, this allows us to identify if the information in the listing field is current or not and can help determine what Benefactor email we will send to the donor.

I added in the Benefactor Page Last Updated field myself but this requires someone to remember to populate this every time they made a change to the Listed as/Listed on Benefactor Page as and wondered if there was a chance that there could be an automatic date field added instead. And if this is do-able the Endowment team would also like this field for the Endowment Site Listed As and WLS Listed As also.

Event Timeline

Change 693281 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Add additional MG-defined benefactor fields to dev sites

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

@RLewis would this also apply to the endowment & wls fields in the same set or if Listed on Benefactor Page as or Listed Order by is updated? Also - would it be better to call the field 'last verified' - you might have cases where you just confirm that it's still right

Also what if the fields are emptied out?

@Eileenmcnaughton I think it would be good if the Endowment and WLS have a separate field as different people are updating the three separate listings and also someone can be listed on the Endowment, WLS and Benefactor page but a different times.

Happy to go with a field name that makes sense and last verified works.

It might switch from Anonymous to Public for instance or from Public to Anonymous in which case we would delete their previous listing.

Change 693985 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Updated triggers for benefactor table

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

@Dwisehaupt are you able to run this trigger fix up - https://gerrit.wikimedia.org/r/c/wikimedia/fundraising/crm/+/693985 that will add the new fields Rosie created into the triggers

@RLewis is this something you would want to search on - or just display when you are on the page for eyeballing

I'm kinda undecided about the best approach - I feel there are different approaces

  1. use mysql triggers to cause the information to be logged whenever a change happens. I have a couple of reservations about this including
  2. we actually already log every change made to the benefactor fields (not yet the new ones but definitely the old one). This is only very marginally visible to you through the change log - but we could do something like the address history tab to make it more visible
  3. add a hook that fills in the date updated using php when the form is submitted (the difference between this & 1 is technical not functional)
  4. add a hook that creates an activity when these fields are updated.

Probably once created 2 would be the least ongoing maintenance - but I don't know how you would use the data to be sure about whether it wuld meet your needs

@Ejegg this is something I wouldn't mind your thoughts on

@Eileenmcnaughton initially I think we would only need this field to be for display purposes but I can see some uses for having this be a searchable field, especially for when we pull the donor list to be included on the Annual Report.

Change 693281 merged by Eileen:

[wikimedia/fundraising/crm@master] Add additional MG-defined benefactor fields to dev sites

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

Change 704192 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Minor cleanup - switch to single get call

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

Change 704192 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Minor cleanup - switch to single get call

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

Change 705614 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Move the custom fields definition to a more logical place

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

Change 705614 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Move the custom fields definition to a more logical place

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

Change 709873 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Add the 2 extra desired tracking fields

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

Change 709873 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Add the 2 extra desired tracking fields

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

@Eileenmcnaughton - yes!!! This is really helpful, thank you so much!