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

Add testing to contribution detail report, covering dev/core/issues#170 #12281

Merged
merged 1 commit into from
Jun 11, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jun 8, 2018

Overview

This PR restructures the contribution detail report to bring it under testing. It re-fixes issue 170 in a more solid tested way

Before

Report toxic & untested

After

Report less toxic & brought under testing

Technical Details

The beginPostProcessCommon function is called by unit tests / the reporttemplates.get api while postProcess is not. We remove the postProcess function & rely on the parent, moving report-specific stuff to beginPostProcessCommon

Comments

@lcdservices am hoping you can give the report a thorough review once tests pass. Can now extend this with tests for any issues found

@civibot
Copy link

civibot bot commented Jun 8, 2018

(Standard links)

@eileenmcnaughton eileenmcnaughton force-pushed the cont_detail_report branch 5 times, most recently from 0258a8f to ddf3fa4 Compare June 9, 2018 07:36
@eileenmcnaughton eileenmcnaughton changed the title Cont detail report Add testing to contribution detail report, covering dev/core/issues#170 Jun 9, 2018
@eileenmcnaughton
Copy link
Contributor Author

test this please

@lcdservices
Copy link
Contributor

@eileenmcnaughton I applied this and ran through a bunch of manual tests. I focused on the soft credit columns/filters, but also tested various other config options. Everything seemed to be working fine.

@lcdservices
Copy link
Contributor

lcdservices commented Jun 11, 2018

@eileenmcnaughton actually just stumbled on another regression. It doesn't appear to be caused by this PR, but you may want to include it.

The total amount column is no longer linked to the contribution record. The issue is here:
https://github.com/eileenmcnaughton/civicrm-core/blob/e6bab5eae9e7293dff9ecb9852f85e6aa01dad7f/CRM/Report/Form/Contribute/Detail.php#L718

The three references to civicrm_contribution_total_amount should be civicrm_contribution_total_amount_sum

If you don't want to include it in this PR let me know and I'll do a separate one.

@seamuslee001
Copy link
Contributor

(CiviCRM Review Template WORD-1.1)

@lcdservices Brian i'm going to merge this as is as its a good improvement, if you could do a follow up on the change that would be helpful

@seamuslee001 seamuslee001 merged commit 8264414 into civicrm:master Jun 11, 2018
@eileenmcnaughton eileenmcnaughton deleted the cont_detail_report branch June 11, 2018 21:17
@eileenmcnaughton
Copy link
Contributor Author

I think we can extend the test to check for that new issue raised

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.

4 participants