-
-
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
Provide API to get browser/OS maps used in Piwik #1058
Comments
For performance, no, we have no plans to read from such tables, but I don't see why we couldn't maintain such tables or at least, make it export-ready via API. |
Export ready via API sounds like a plan, not having these mapping in the DB (redundant data that we want to keep in files) |
Of course, ideally the API would be used for everything, now that the Live! plugin (#44) has an extensive API to return the data from the piwik_log_* tables. |
Ok thanks for your reply. |
For the purpose of discussion, I'm going to refer to this static data as System Tables. We could add an API method for each system table in the closest/corresponding plugin, e.g., PluginName.getSystemTableName($parameters_if_any) for:
Example: SitesManager.getCurrenciesSystemTable() We could also have API.getSystemTableMetaData(). |
System Tables are not required for any use of the API, since the API gives friendly name in output. System tables are only used for low level SQL requests. I think API.getSystemTableMetaData() is less code & better to have all in 1 place, since one typically needs all system tables or none. Maybe named getSystemTables() ? |
Currently in the database logs, browsers, operating systems, or countries are defined as static array :
static protected $browsers = array(
'opera' => 'OP',
'msie' => 'IE',
'microsoft internet explorer' => 'IE',
'internet explorer' => 'IE',
...
So I's currently impossible to format data with the label values accessing only database. (I must maintain a mapping list manually).
Proposal: provide API to publish this data. What data should it return appart from the Browsers and OS maps? Where should this API be?
The text was updated successfully, but these errors were encountered: