MDL-83361 reportbuilder: date aggregation for timestamp columns.

This change introduces updates to the existing aggregation API, to
allow types to define whether to group by fields of a column to which
the aggregation is applied.

The new date aggregation utilises this, to allow for creation of time
series reports, e.g. report data grouped by dates.

Co-authored-by: Daniel Neis Araujo <danielneis@gmail.com>
This commit is contained in:
Paul Holden 2024-10-15 13:52:34 +01:00
parent a97ddeb2a2
commit 812975e218
No known key found for this signature in database
GPG key ID: A81A96D6045F6164
8 changed files with 237 additions and 17 deletions

View file

@ -0,0 +1,12 @@
issueNumber: MDL-83361
notes:
core_reportbuilder:
- message: >-
The base aggregation class has a new `column_groupby` method, to be
implemented in aggregation types to determime whether report tables
should group by the fields of the aggregated column
type: improved
- message: >-
There is a new `date` aggregation type, that can be applied in custom
and system reports
type: improved