Make it easy for plugin developers to use sub-tables of any level in their data plugin #6167
Labels
c: Platform
For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
The goal of this issue is to make it easier to developers to manage data tables where rows can have nested sub-tables. In particular we may review how Sub-tables are implemented and the API proposed to platform developers. This can be broken down later by client side AngularJS improvements (new angularjs datatable?), and by core analytics platform PHP work. (each technology has its own set of challenges to solve before we can reach a state of beautiful sub tables APIs.)
Context
This feature of displaying data from sub-tables is available in common reports (Referrers > Websites, click on domain and you get all pages that sent you traffic for this website), and in Actions > Pages when you click a directory in the report it then open all pages within this Page URLs path.
The code is a bit convoluted and maybe awkward as it requires to use an
idSubtable
that sometimes makes things difficult. Instead maybe we could think of a simpler and better way in Piwik to manage tables with nested tables?Use case
originating from this other comment #6097 (comment) a very nice use case for use of sub-tables of a single datatable.
Note: these sub-tables would be based off a single data table, "grouped by" language only to make visualisation better. (in other words, the server side does not implement
idSubtable
parameter.)References
There are several opened issues about sub-tables:
Tasks
idSubtable
could be changed to be instead thelabel
of the row we want to get sub-level?Use case
above)let's discuss in the comments!
The text was updated successfully, but these errors were encountered: