-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Metadata support for lastX & previousX #2414
Comments
Metadata lack of support of previous|last is a known limitation but we would like to fix it, because it would be useful for the ImageGraph plugin #1721 (to plot evolution graph). |
and a requirement for #151 |
Concerning metadata <prettyDate/> please confirm output for the following cases:
|
Concerning <reportData/>, what is the best option
Something completely different or a variant of above ideas ? |
The code writing <result date=""> is in renderDataTableArray() in Xml renderer. It works on a Piwik_DataTable_Array. Maybe the metadata for last10&period=day for example, would build a Piwik_DataTable_Array? Or maybe you have a different plan (which might be OK!)? |
I like the idea of staying consistent with the general API. Concerning <prettyDate>, it means we have the same output for two quite different calls:
In the first case we give no indication there are multiple periods in the output. |
I think it's fine having same string for these 2 outputs, because the consumers (RSS & Mobile App) will not I think use this prettyDate? Also, better not introduce new dates until we are sure we need them. :) |
Attachment: |
Here is the patch for review. Info:
|
Great stuff!! :)
|
(In [4879]) fixes #2414 refs matomo-org/matomo-mobile-2#2350 refs #5571 |
If you try to set date=last10&period=day as in /docs/analytics-api/reference/ you get
Reproducible on the demo http://demo.piwik.org/index.php?module=API&method=API.getProcessedReport&idSite=7&period=day&date=last10&apiModule=UserCountry&apiAction=getCountry&format=xml&token_auth=anonymous
The text was updated successfully, but these errors were encountered: