-
-
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
[REF] extract calculation of basic stats #13608
[REF] extract calculation of basic stats #13608
Conversation
(Standard links)
|
6a90e64
to
8ef6eb7
Compare
|
||
// make sure contribution is completed - CRM-4989 | ||
$completedWhere = $where . " AND civicrm_contribution.contribution_status_id = 1 "; |
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.
I've been moving this clause into the relevant queries - there just isn't enough gained by sharing bits of queries & it makes it more complicated
@@ -5139,6 +5122,8 @@ public function summaryContribution($context = NULL) { | |||
|
|||
$summary['total']['mode'] = CRM_Contribute_BAO_Contribution::computeStats('mode', $modeSQL); | |||
|
|||
// make sure contribution is completed - CRM-4989 | |||
$completedWhere = $where . " AND civicrm_contribution.contribution_status_id = 1 "; |
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.
for now - but this variable's days are numbered.....
Merging based on code review and passing tests. |
thanks @colemanw |
Overview
Code clean up preliminary to resolving performance issues
Before
Code hard to read
After
Code more readable
Technical Details
Partial of #13607 - adding 'has-tests' which were merged in #13605
Comments