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

Add flag "supports flatten" to metadata API #3780

Open
tsteur opened this issue Feb 27, 2013 · 1 comment
Open

Add flag "supports flatten" to metadata API #3780

tsteur opened this issue Feb 27, 2013 · 1 comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@tsteur
Copy link
Member

tsteur commented Feb 27, 2013

In new Piwik Mobile App I'd like to integrate a "Flatten" button. But "flatten" does not always makes sense, for instance in case of "VisitsSummary.get". I'd like to display the button only if a report "supports flatten". So, I need this information in metadata.

I've seen there's a (new?) flag "constantRowsCount". Maybe this can be used? Unfortunately, the flag is only set for reports like "VisitTime_getVisitInformationPerServerTime" but not for reports like "VisitsSummary_get".

The flag should be available in "API.getReportMetadata" as well as "API.getProcessedReport".

@mattab
Copy link
Member

mattab commented Mar 3, 2013

Good point... we should ideally share the complete plugin customization/settings, not only flatten. Hopefully we can work on a better system before Piwik 2.0, so that the metadata could contain all the "View settings" as well as the existing data. This requires some refactoring. If you need "flatten" soon/before that, ping me here again when it's needed, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants