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

CRM-21677 - Remove (some) unnecessary query joins when rendering reports #11814

Merged
merged 1 commit into from
Apr 2, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Mar 15, 2018

Overview

Reviewers cut of #11550 - reduce unnecessary joins to address tables in reports

Before

unnecessary joins to phone, email and address tables

After

join only when needed, code standardised

Technical Details

This also aligns the approach with that used in the extended report extension - there might be some notices as I have updated the extension where the signature differs from core but will need to drop a new release & people will need to be on it.

Comments

@yashodha - I excluded this line https://github.com/civicrm/civicrm-core/pull/11550/files#diff-c2f466cf0d5fef7048b1ec82ec5aaaceL44 because I think it may be contentious (although I think I probably agree with the change personally)

Also, I decided to keep + deprecate the previous function names - we can remove them in a few point versions


@eileenmcnaughton eileenmcnaughton force-pushed the report branch 3 times, most recently from c0e941f to 503a751 Compare March 15, 2018 12:00
@eileenmcnaughton
Copy link
Contributor Author

@yashodha just thinking about this - it might make sense to do a first PR with just the new functions & a couple of reports & then do the others in chunks - just because the QA task needs to be manageable

@yashodha
Copy link
Contributor

@eileenmcnaughton agreed, will QA and merge

CRM-21677 - fix DB error and more clean up

CRM-21677 - generalised function

minor fix

CRM-21677 - keep the naming consistent

style fix
@eileenmcnaughton
Copy link
Contributor Author

@jitendrapurohit @yashodha this is finally small enough to be reviewable as one chunk :-)

@yashodha
Copy link
Contributor

yashodha commented Apr 2, 2018

@eileenmcnaughton : this works fine, merging.

Top Donor report is giving DB error, but that is not related and is happening before applying patch and should be addressed separately.

@yashodha yashodha merged commit b57b8dc into civicrm:master Apr 2, 2018
@eileenmcnaughton eileenmcnaughton deleted the report branch April 2, 2018 07:49
@eileenmcnaughton
Copy link
Contributor Author

Yay - done! Thanks @yashodha @jitendrapurohit - I think it's great to have this pattern be consistent as we all know it will be the starting point for future copy & paste :-)

@eileenmcnaughton eileenmcnaughton changed the title CRM-21677 - Report improvements CRM-21677 - Remove (some) unnecessary query joins when rendering reports Apr 2, 2018
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