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

Added a new method that allows plugins to define metrics we expect to see percentage values #11274

Merged
merged 1 commit into from Jan 30, 2017

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Jan 25, 2017

I first used an event in Metrics::getMetricIdsToProcessReportTotal but this makes all reports quite a bit slower as you can see it iterates a lot over all the metrics and all rows and all columns in sumColumnValueToTotal. Therefore it is much better to add a method to report class so we iterate over metrics only when needed.

I tried to add a test but couldn't really manage to write one.

@tsteur tsteur added c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. Needs Review PRs that need a code review labels Jan 25, 2017
@tsteur tsteur added this to the 3.0.2 milestone Jan 25, 2017
@tsteur tsteur merged commit 1d27600 into 3.x-dev Jan 30, 2017
@tsteur tsteur deleted the reportTotals branch January 30, 2017 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant