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
Console command generate:report not geting all available dimensions #6481
Comments
Thanks for the report! cc @tsteur |
Can you check if it works? BTW: In case development mode is enabled caches - should - be ignored anyway. |
@tsteur - yes it's working now, but still there is a minor flaw in generator use flow I think ;) Lines to be possibly changed are: |
Not sure. Maybe we could only include dimensions from this plugin you are currently working on / generating the report for? Even if it is deactivated? Guess this is the most common use case anyway |
Actually it would make even more sense that way. +1 |
…cted plugin even if the plugin is not enabled
I tried to use generate: tasks to scaffold plugin defining new reports and dimensions. Firstly I created dimensions, and then I tried to create report using those dimensions. I got following error:
"Leave dimension either empty or use an existing one. You can also create a new dimension by calling .console generate:dimension before generating this report."
After short investigation I think bug lies in this line
https://github.com/piwik/piwik/blob/master/plugins/CoreConsole/Commands/GenerateReport.php#L226
This loop doesn't notice newly created dimensions and therefore it's impossible to create report for it.
I think that loop should iterate over dimensions (columns?) themself instead of already existing reports.
I had enabled development options in config and cleared tmp/ directories so I don't think it's cache-related.
Or if it's false-positive let me know how to proceed with generating report for previously created new dimension.
The text was updated successfully, but these errors were encountered: