-
-
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
Improve output triggers when logged to file #20472
Conversation
(Standard links)
|
3f324de
to
a1840cc
Compare
test this please |
At some point these stopped being consistently alpha sorted - which doesn't matter if you are just letting Civi run the trigger updates but if you output it and diff it this inconsistency is a problem Subset of civicrm#20472 in the hope of getting this merged civicrm#20471 also grooms this output for diffing albeit only in an edge case
a1840cc
to
f443cc6
Compare
O_o odd test failure lets see it if repeats
|
Jenkins re test this please |
Hmm write on rebuild AND reap on destruct
f443cc6
to
0a08962
Compare
Is this the one you were looking for review? I can take a look. |
Thanks @demeritcowboy - there is another one too which can be tested in conjuntion - #20471 - note we discussed #24071 & you just need to test for no breakage - the rpow stuff itself doesn't need testing as it's obscure / only used by us & the change should be a clean up on it's own |
jenkins retest this please |
I reviewed both PRs at the same time. Looks good. I wasn't aware this feature existed. The only differences in the final result (when imported) I see is that the Definer is different but that's a good thing. |
thanks @demeritcowboy ! |
Overview
When logging is enabled or disabled with the setting logging_no_trigger_permission set to TRUE the trigger sql is output to a file instead of being run. This is used by wmf & probably no-one else.
The issue we are having is the output sql has become a bit messy & inconsistent in terms of
This cleans it up by
Before
drush cvapi Setting.create logging_no_trigger_permission=1
drush cvapi Setting.create logging=1
The output is to a file in config and log - it is overly verbose
After
Per above but logging is less verbose
Technical Details
Comments