Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/financial#152 [REF] Parse ids before sending to recur function (minor simplification) #18629

Merged
merged 1 commit into from
Oct 10, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Sep 28, 2020

Overview

Minor simplification - parse ids into valid format & pass them into recur, rather than passing them in wrong & 'asking' recur to parse them

Before

parsing of ids into usable array done at the last minute, other values passes around unnecessarily

After

parsing done close to the point where they are derived

Technical Details

The goal here is to make it very clear & visible what is in $ids and objects so we can fix the building of them to only do what is needed,

Comments

@civibot
Copy link

civibot bot commented Sep 28, 2020

(Standard links)

@civibot civibot bot added the master label Sep 28, 2020
@eileenmcnaughton
Copy link
Contributor Author

@mattwire so I was thinking after these 3 (which would conflict) we STOP PASSING
$objects to completeOrder altogether & pass $contribution instead!

@seamuslee001
Copy link
Contributor

Test fails relate @eileenmcnaughton

CRM_Core_Payment_AuthorizeNetIPNTest.testIPNPaymentRecurNoReceipt
CRM_Core_Payment_AuthorizeNetIPNTest.testIPNPaymentRecurSuccess
CRM_Core_Payment_AuthorizeNetIPNTest.testIPNPaymentRecurSuccessMultiAuthNetProcessor
CRM_Core_Payment_AuthorizeNetIPNTest.testIPNPaymentRecurSuccessSuppliedReceiveDate
CRM_Core_Payment_AuthorizeNetIPNTest.testIPNPaymentMembershipRecurSuccess
CRM_Core_Payment_AuthorizeNetIPNTest.testIPNPaymentMembershipRecurSuccessNoLeakage
CRM_Core_Payment_AuthorizeNetIPNTest.testIPNPaymentMembershipRecurSuccessNoLeakageOnlineThenOffline

@eileenmcnaughton
Copy link
Contributor Author

Looks like I missed a beat on this one - fortunately jenkins didn't

I'll close this & once the other 2 are merged will switch to passing just contribution (not objects) & then revisit the recurring notification part of this

The ids variable is only used to calculate a culled version of the ids variable to pass on, just
pass in what is needed
@eileenmcnaughton
Copy link
Contributor Author

OK - I fixed it - have at it jenkins

@eileenmcnaughton eileenmcnaughton changed the title [REF] Parse ids before sending to recur function (minor simplification) dev/financial#152 [REF] Parse ids before sending to recur function (minor simplification) Oct 7, 2020
@colemanw
Copy link
Member

Makes sense.

@colemanw colemanw merged commit 24485aa into civicrm:master Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants