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

Enable tests on the logging summary report. #12065

Closed

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented May 1, 2018

Overview

Add tests to logging summary report

This is a preliminary fix to get testing working before doing any further fixes.

Before

Tests not enabled for logging summary

After

Tests enabled

Technical Details

I have tested this on mysql 5.6 with full group by mode enabled. I think as a benchmark this is more generic than 5.7 (which has features not in common with MariaDB. I disabled full group temporarily before non-compliant queries (which is the status quo but prevents hard-fails).

The tests use the api which does not call postProcess (as it is often problematic) so I had to move code to functions that it DOES call (this has been done for most other reports previously)

I removed this CRM_Utils_SQL::supportsFullGroupBy() from the enable & disable functions as it gives false negatives and the mysql checks are more accurate. We are not using any functionality that is 5.7 specific (like any value) so this is good. It would be good to confirm this test / report runs in a maria DB full group by scenario - who has that set up? @mlutfy ?

Comments

@seamuslee001 @monishdeb Despite seeming like a lot of change this is mostly just extraction of functions. I can break out into a couple of refactor commits for reviewability over the next day or so.

A simple one is already created here #12066

This is a partial of civicrm#12065 which is a very simple extraction - only one additional change of moving a variable to a class property
Despite seeming like a lot of change this is mostly just extraction to run via the tests. I can break out into a couple of refactor commits for reviewablility.

I have tested this on mysql 5.6 with full group by mode enabled.
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request May 2, 2018
This is a partial of civicrm#12065 which is a very simple extraction - only one additional change of moving a variable to a class property
@eileenmcnaughton eileenmcnaughton deleted the logging_test branch May 9, 2018 21:48
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.

2 participants