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
Remove a var_dump /exit #10410
Remove a var_dump /exit #10410
Conversation
LGTM |
private function shouldReportBeIgnored($reportMetadata) | ||
{ | ||
// Some plugins may not define report categories | ||
if(empty($reportMetadata['category'])) { |
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.
Whitespace missing
ideally no merge of this before we haven't merged the UI PR |
$reportMetadata['category'] == 'API' || | ||
$reportMetadata['category'] == Piwik::translate('General_MultiSitesSummary') && $reportMetadata['name'] == Piwik::translate('General_SingleWebsitesDashboard') | ||
) { | ||
if ($this->shouldReportBeIgnored($reportMetadata)) { |
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.
Can you add a unit or an integration test for this method getReportMetadata?
There is now a merge conflict. I think I have removed the var_dump as well when I made the tests green for the Piwik 3 UI branch |
Already fixed in 3.x-dev branch |
along with a tiny refactor