-
-
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
dev/core#1366 - case audit printReport parameter is no longer used #16670
Conversation
(Standard links)
|
0a70e59
to
67f8a3e
Compare
jenkins test this please |
1 similar comment
jenkins test this please |
jenkins retest this please |
Betty and I are reviewing PR's and we came across this one. @demeritcowboy we have a couple of questions:
|
Hi, |
I did a code search & this is only called from one place & only with the param being TRUE so the parameter is not needed & hence this makes sense @demeritcowboy looks like it's not the only unused param on that function! |
Thanks. Yes I think there's a lot of audit-related code that can be removed. This is the last in the sequence related to the ticket. |
Overview
The printReport parameter to run() is no longer used because it's now always TRUE.
If you look at the files changed tab with the ignore whitespace setting turned on it's a little cleaner.
Technical Details
To see that it's no longer used, start by grepping for CRM_Case_Audit_Audit (exclude AuditConfig:
grep -r CRM_Case_Audit_Audit * | grep -v CRM_Case_Audit_AuditConfig
)Then to understand why it's never used, it's because the feature it supported was purposely bypassed in https://github.com/civicrm/civicrm-core/pull/15998/files#diff-fdb4ad333e7ba641428562199adc7dee, and thru some intermediate cleanup all other references to it have also been removed.
Comments
It's now also easier to see why PR #16660 was able to remove the Audit.tpl file since there's no references to it. The order of these PRs was backwards but it's the same result.
There's still more that can be removed but will be separate PRs.