Open tsteur opened 9 years ago
Not sure about showing only what's there on the screen... maybe we need some kind of "Data Export wizard window" to let users decide which columns to export, and configure all that is useful to configure, etc. By default IMO it's better to export all data to make sure user is aware of all data available to her.
I wouldn't like a wizard. IMO when you see that export you expect to have the same data in the exported file as seen. What does it help you when you see all the data but can't use it? It might be better to have maybe "Export" and "API" both open the list as currently with different formats. While exports gives you the same information as displayed, API actually does the current behavior
I used the export links in the Piwik UI today and was a bit surprised about the output. I was expecting to see only the displayed information in the output (what is displayed in the table). Instead the export link is only a plain API call which can contain lots of random information.
See eg this export link of Insights: http://demo.piwik.org/index.php?module=API&method=Insights.getInsights&format=XML&idSite=3&period=day&date=yesterday&flat=0&token_auth=anonymous&filter_limit=500&&reportUniqueId=Actions_getPageUrls&minImpactPercent=0.1&minGrowthPercent=1&comparedToXPeriods=1&orderBy=absolute&filterBy=&limitIncreaser=50&limitDecreaser=50&expanded=1
Instead I would expect to see only those 3 columns:
The same applies to all other reports/visualizations as in when I view the plain data table I expect it contains the same columns that are currently displayed with the same column names etc. If the visualisation is a pie, a cloud or evolution it would probably only have 2 columns.
This would make exports more useful in my opinion as one can for example directly open the CSV in Excel / OpenOffice and have useful names etc. Basically like the RSS export where
translateColumnNames
is applied etc.Some people might be interested in the current output though. We do have the API page for this but maybe there could be even another icon or more entries in export for this