-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Export Add unit test + minor refactor covering specifiable payment output fields for participant export. #12535
Export Add unit test + minor refactor covering specifiable payment output fields for participant export. #12535
Conversation
(Standard links)
|
c41bd1e
to
096e72c
Compare
096e72c
to
876a47f
Compare
The selected payments field variable is primarily used when exporting participants with contributions. This gets the definition of it out of the returnProperties definition and calculates it more sensibly.
876a47f
to
c66a574
Compare
Reviewing this now |
@stesi561 is this still pending you testing in the UI? |
Yes sorry I ran out of time last night. Will have a run at it tonight/tomorrow. If that's okay? |
@stesi561 perfectly fine :-) i think Eileen was just trying to check where things were at |
@stesi561 much appreciated! |
@stesi561 if you get a chance to check this today it would be fantastic - I have a couple more PR that will need rebasing once this is merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on different component export - works well. Also checked the payment fields in participant export and it works without any issues. +1 to merge this change.
Merging as per review by @stesi561 and testing by @jitendrapurohit |
Overview
Unit test covering currently specifiable fields for participant export + refactor out $selectedPaymentFields & paymentTableId variables
Before
No test. Parameter passed via multiple functions
After
Parameter calculated by processor class, significant additional tests
Technical Details
The $selectedPaymentFields & paymentTableId variables are set when payment fields ( like contribution status) are specified on participant export. This test + refactor makes that more sane.
The goal here is to have a sensible separation of concerns in the various processing actions
Comments