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

[REF] extract add median to stats #13616

Merged
merged 1 commit into from
Feb 17, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Feb 17, 2019

Overview

Code clean up preliminary to resolving performance issues

Before

Code hard to read

After

Code more readable

output ugly but unchanged
screenshot 2019-02-17 17 37 30

Technical Details

Partial of #13607 - adding 'has-tests' which were merged in #13605

Comments

@civibot
Copy link

civibot bot commented Feb 17, 2019

(Standard links)

* @param string $from
*/
protected function addMedianToStats(&$summary, $where, $from) {
$medianSQL = "{$from} {$where} ND civicrm_contribution.contribution_status_id = 1 ";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ND?
Copy-paste error?
I'm interested to see if the tests catch it. If so then adding merge-on-pass is a no-brainer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opps - I re-tweaked that commit when pulling it out from the borg.... yeah tests will fail

@eileenmcnaughton
Copy link
Contributor Author

@colemanw voila - proof

@colemanw
Copy link
Member

Cool

@eileenmcnaughton
Copy link
Contributor Author

ok fixed now....

@colemanw colemanw merged commit ee4cdaa into civicrm:master Feb 17, 2019
@colemanw colemanw deleted the cont_summary_extract1 branch February 17, 2019 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants