Page MenuHomePhabricator

Switch eoy email over fully to the new method
Closed, ResolvedPublic

Description

Task for fr-test sending side of it

@Dwisehaupt @Jgreen do you have any thoughts as to whether we could safely test a mailin job on staging without any mail actually going out - ie a smtp server that doesn't go anywhere? My guess is it's too late for this round but I thought I'd ask the question

Details

Related Changes in Gerrit:
SubjectAuthorRepoBranchLines +/-
Eileenwikimedia/fundraising/crmmaster+11 -1
Eileenwikimedia/fundraising/crmmaster+50 -16
Eileenwikimedia/fundraising/crm/civicrmmaster+1 -1
Eileenwikimedia/fundraising/crmmaster+7 -7
Eileenwikimedia/fundraising/crmmaster+14 -50
Eileenwikimedia/fundraising/crmmaster+1 -1
Eileenwikimedia/fundraising/crmmaster+41 -29
Eileenwikimedia/fundraising/crmmaster+16 -11
Eileenwikimedia/fundraising/crmmaster+18 -5
Eileenwikimedia/fundraising/crmmaster+20 -18
Eileenwikimedia/fundraising/crmmaster+0 -67
Eileenwikimedia/fundraising/crmmaster+14 -12
Eileenwikimedia/fundraising/crmmaster+174 -48
Eileenwikimedia/fundraising/crmmaster+32 -27
Eileenwikimedia/fundraising/crm/civicrmmaster+7 -4
Eileenwikimedia/fundraising/crmmaster+1 -1
Eileenwikimedia/fundraising/crmmaster+0 -7
Eileenwikimedia/fundraising/crmmaster+15 -26
Eileenwikimedia/fundraising/crmmaster+4 -0
Eileenwikimedia/fundraising/crmmaster+96 -16
Eileenwikimedia/fundraising/crmmaster+0 -971
Show related patches Customize query in gerrit

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

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

[wikimedia/fundraising/crm@master] Goodbye old templates

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

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

[wikimedia/fundraising/crm@master] Add Send api, move tests over.

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

@Eileenmcnaughton testing on frdev1001 is definitely feasible but we need to make some configuration changes to insure messages can't leave the server. I'll look at this today.

Change 744108 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Goodbye old templates

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

Change 744109 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Add Send api, move tests over.

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

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

[wikimedia/fundraising/crm@master] Remove reference to legacy property

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

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

[wikimedia/fundraising/crm/civicrm@master] Fix error - use custom fields not core fields for original currency

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

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

[wikimedia/fundraising/crm@master] Set original currency details in test

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

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

[wikimedia/fundraising/crm@master] Test readability improvement

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

Change 745336 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Set original currency details in test

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

Change 745337 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Test readability improvement

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

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

[wikimedia/fundraising/crm@master] Add limit to EoyEMail::send

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

Change 744855 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Remove reference to legacy property

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

Change 745362 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Add limit to EoyEMail::send

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

Change 745330 merged by jenkins-bot:

[wikimedia/fundraising/crm/civicrm@master] Fix error - use custom fields not core fields for original currency

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

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

[wikimedia/fundraising/crm@master] Add year column to wmf_eoy_receipt_donor

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

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

[wikimedia/fundraising/crm@master] Update tests to test sent mail, not db table

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

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

[wikimedia/fundraising/crm@master] Do not create a job when there is contact id

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

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

[wikimedia/fundraising/crm@master] Finally fully remove the drupal module

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

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

[wikimedia/fundraising/crm@master] Alter query to ensure email is unique

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

Change 745645 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Add year column to wmf_eoy_receipt_donor

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

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

[wikimedia/fundraising/crm@master] Fix bug where no language was falling back to first translation

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

Change 746013 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Update tests to test sent mail, not db table

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

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

[wikimedia/fundraising/crm@master] Cleanup on sendLetters

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

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

[wikimedia/fundraising/crm@master] Improve UI when contact does not have a valid email

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

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

[wikimedia/fundraising/crm@master] Handle quotes in tokens

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

Change 746015 merged by Eileen:

[wikimedia/fundraising/crm@master] Do not create a job when there is contact id

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

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

[wikimedia/fundraising/crm@master] Clean up MakeJob

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

Change 746016 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Finally fully remove the drupal module

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

Change 746020 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Alter query to ensure email is unique

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

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

[wikimedia/fundraising/crm@master] Check status when checking if job is empty

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

Change 747612 merged by Eileen:

[wikimedia/fundraising/crm@master] Cleanup on sendLetters

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

Change 746992 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Fix bug where no language was falling back to first translation

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

Change 747625 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Improve UI when contact does not have a valid email

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

Change 747679 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Check status when checking if job is empty

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

Change 747673 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Clean up MakeJob

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

Change 747638 abandoned by Eileen:

[wikimedia/fundraising/crm@master] Handle quotes in tokens

Reason:

I have a new plan

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

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

[wikimedia/fundraising/crm/civicrm@master] Handle single quote in name

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

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

[wikimedia/fundraising/crm@master] Add unit test for single quote in name

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

Change 748834 merged by jenkins-bot:

[wikimedia/fundraising/crm/civicrm@master] Handle single quote in name

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

Change 748833 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Add unit test for single quote in name

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

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

[wikimedia/fundraising/crm@master] Fix text only version of eoy_template to not break some tokens

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

I started looking at T298664 and applying later civi code triggered a test fail. On digging it is a real issue with eoy emails - but an obscure one.

We send out an html version AND a text version of the emails. The text version is ONLY seen in email clients configured not to show htm - which is very rare these days. The code that inserted the text version into the DB mangled the tokens within the html bold tags - converting

Your {$year} total was {$total.currency} {$total.amount}.

to

YOUR {$YEAR} TOTAL WAS {$TOTAL.CURRENCY} {$TOTAL.AMOUNT}.

Since those are not valid we wind up with

YOUR TOTAL WAS .

Not great but not that bad in context as the next line is

TOTAL DONATIONS TO WIKIMEDIA FOUNDATION:

so it only seems a bit odd if you only gave in one currency (and more odd for multiple currencies)

My basic feeling is the is very edge & not that bad but a little more bad if there is a compounding edge case. I put up a patch that fixes but only on dev.

I could manually fix on live - but my gut says fixing at this point has some risk and I land on do nothing being the best option

Change 751857 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Fix text only version of eoy_template to not break some tokens

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

DStrine set Final Story Points to 4.