Commit graph

618 commits

Author SHA1 Message Date
Sara Arjona
039db6bff9
NOBUG: Add upgrade notes 2025-02-06 16:21:38 +01:00
Jun Pataleta
6b9e75f685
Merge branch 'MDL-84016' of https://github.com/paulholden/moodle 2025-02-06 09:36:07 +08:00
Paul Holden
dd3af70440
MDL-74488 reportbuilder: method for retrieving report row counts. 2025-02-05 17:38:21 +00:00
Sara Arjona
39a5efeace
Merge branch 'MDL-84226' of https://github.com/paulholden/moodle 2025-01-29 16:22:11 +01:00
Paul Holden
0c090789f9
MDL-84016 reportbuilder: column methods for setting help icons.
This change exposes the underlying table library API for setting
help icon for table headers, via column instance getter/setter.

Support added for rendering said icons in system reports.
2025-01-29 11:50:10 +00:00
Sara Arjona
c96c4a529f
Merge branch 'MDL-84129' of https://github.com/paulholden/moodle 2025-01-29 08:49:59 +01:00
Sara Arjona
2f3cffd815
Merge branch 'MDL-83468-main' of https://github.com/andrewnicols/moodle 2025-01-20 16:47:56 +01:00
Andrew Nicols
3b1118cfd4
MDL-83468 phpunit: assertEqualsCanonicalizing now compares keys too
In previous versions of PHPUnit, the `assertEqualsCanonicalizing()`
method compared values only, ignoring the keys entirely. Since PHPUnit
10 the method now checks keys where they are non-numeric.

To solve this we call `array_values()`.
2025-01-20 16:47:56 +01:00
Andrew Nicols
bc75ef8bbc
MDL-83468 phpunit: Fix various tests after phpunit 10 2025-01-20 16:47:55 +01:00
Andrew Nicols
b95a8c6ecc
MDL-83468 phpunit: Fix data provider param names 2025-01-20 16:47:55 +01:00
Paul Holden
a743f4cf83
MDL-84226 user: add report entity filter for user picture presence. 2025-01-16 08:11:49 +00:00
Paul Holden
bf73278f39
MDL-84202 customfield_number: add number instance to report testing. 2025-01-14 10:18:36 +00:00
Paul Holden
d24b3b0049
MDL-84129 reportbuilder: improve handling of alternate name fields.
It's possible the first returned field contains a null value, while
subsequent fields may be non-null - in this case we should still
populate the fullname in column callback.
2025-01-13 16:03:23 +00:00
Jun Pataleta
ff30f04299
NOBUG: Add upgrade notes 2024-12-19 20:07:48 +08:00
Huong Nguyen
359472dd35
MDL-83738 reportbuilder: Fix PHP Syntaxt error 2024-12-18 10:00:45 +07:00
Huong Nguyen
eac86fb5d3
Merge branch 'MDL-83738' of https://github.com/paulholden/moodle 2024-12-18 09:37:47 +07:00
Paul Holden
952747912c
MDL-83738 reportbuilder: allow aggregations to define calculated type.
This allows each class to define the type of data that they return,
regardless of the type of column to which they are applied. This is the
pre-cursor to work on graphing and filtering of aggregated data.

E.g. a text field that is aggregated with "count" is returning numeric
data rather than text.
2024-12-17 08:28:31 +00:00
Paul Holden
0fe0fc675c
MDL-84000 reportbuilder: move testcase helper to autoloaded namespace.
Clean up some class imports while we're at it.
2024-12-17 08:19:38 +00:00
Paul Holden
812975e218
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>
2024-12-13 12:36:22 +00:00
Jun Pataleta
4929d6c3d1
Merge branch 'MDL-81520-main' of https://github.com/andrewnicols/moodle 2024-12-11 13:41:15 +08:00
Andrew Nicols
c2414e5a45
MDL-81520 core: Fix test finality 2024-12-11 12:30:23 +08:00
Mikel Martín
f9abc562f5 MDL-81825 theme_boost: Refactor .sr-only usages for BS5
- Add .visually-hidden to the Boostratp 5 bridge SCSS file
- Replace .sr-only occurrences with .visually-hidden
- Replace .dropzone-sr-only-focusable  with .dropzone-visually-hidden-focusable
  for consistency
2024-12-10 14:02:32 +01:00
Huong Nguyen
49c975b918
NOBUG: Add upgrade notes 2024-12-05 22:32:26 +07:00
Huong Nguyen
376a4b5f76
Merge branch 'MDL-83345' of https://github.com/paulholden/moodle 2024-12-05 12:05:12 +07:00
Paul Holden
f7e0e8cd96
MDL-83345 reportbuilder: migrate filter storage from user preferences.
Use a dedicated persistent table/model for storage of a users' report
filter configuration.
2024-12-03 16:42:35 +00:00
Paul Holden
e76d99f29d
MDL-83718 reportbuilder: use aliased user fullname sort fields.
This is extending work started in 8f32e623 that removed duplicate
fields when sorting user fullname columns (to ensure compatibility
across supported DBs).

We must now refer to these sorted fields by their alias in order to
ensure they continue working when processed from the report table.

Co-authored-by: David Carrillo <davidmc@moodle.com>
2024-12-03 13:17:41 +00:00
Huong Nguyen
c0f349c034
Merge branch 'MDL-83718' of https://github.com/paulholden/moodle 2024-12-03 10:05:33 +07:00
Huong Nguyen
bc89603638
Merge branch 'MDL-82913' of https://github.com/paulholden/moodle 2024-12-03 09:45:32 +07:00
Jun Pataleta
5d5cedc8ff
Merge branch 'MDL-82475' of https://github.com/paulholden/moodle 2024-11-28 13:23:55 +08:00
Mikel Martín
636ab0fba9 MDL-81821 theme_boost: Refactor font utility classes for BS5 2024-11-26 15:17:30 +01:00
Paul Holden
a0ef4bb8fe
MDL-82913 reportbuilder: simplify select filter for limited options.
Where the select filter contains upto two items (making it a binary
choice), then we can simplify the filter form elements to always
assume: "Equal to [ Option 1 | Option 2 ]".
2024-11-22 15:38:11 +00:00
Jun Pataleta
1a85875c34
NOBUG: Add upgrade notes 2024-11-22 22:26:24 +08:00
Huong Nguyen
443871d320
Merge branch 'MDL-80430' of https://github.com/paulholden/moodle 2024-11-22 10:50:47 +07:00
Paul Holden
02186de904
MDL-83718 reportbuilder: use window count method to get table data.
Use the new "counted recordset" DML API from 42664ee49a to obtain
the raw table data for reports. For those databases with defined
support for count window functions, this should give a performance
benefit by combining the count and main query into one request.
2024-11-19 18:07:04 +00:00
Jun Pataleta
fcb39d60a9
Merge branch 'MDL-81521-main' of https://github.com/andrewnicols/moodle 2024-11-19 15:15:17 +08:00
Paul Holden
1317aee9e1
MDL-77065 reportbuilder: audience filter for the report access list. 2024-11-15 15:00:11 +00:00
Paul Holden
f3cd1df6e1
MDL-80430 reportbuilder: final removal of default table aliases.
They've been auto-generated for some time now, and we can make the
newer `get_default_tables` method abstract to ensure it's always
implemented.
2024-11-15 10:21:45 +00:00
Andrew Nicols
a6acb015a3
MDL-81521 core: Update all possibly data providers to be static
Note: Some data providers could not be automatically be converted to
being static. These will be handled in a separate issue.
2024-11-15 12:50:55 +08:00
Jun Pataleta
05c7d005c1
Merge branch 'MDL-72293' of https://github.com/paulholden/moodle 2024-11-07 11:59:41 +08:00
Jun Pataleta
3f5ecfead7
Merge branch 'MDL-77270' of https://github.com/dravek/moodle 2024-11-06 11:14:37 +08:00
Paul Holden
791eefd450
MDL-82088 reportbuilder: improve filtering by report schedule data. 2024-11-04 16:22:05 +00:00
Huong Nguyen
6a1feb87bd
NOBUG: Add upgrade notes 2024-11-01 14:28:56 +07:00
Jun Pataleta
7e63510b03
Merge branch 'MDL-82809' of https://github.com/paulholden/moodle 2024-10-31 11:21:42 +07:00
Jun Pataleta
4af11fc37a
Merge branch 'MDL-83202' of https://github.com/paulholden/moodle 2024-10-31 11:21:42 +07:00
David Carrillo
73a507507f
MDL-77270 reportbuilder: Add ability to duplicate custom reports 2024-10-25 07:56:04 +02:00
Paul Holden
26bb378e88
MDL-82809 reportbuilder: always apply conditions to custom report.
Including those that are otherwise unavailable to the current user,
ensuring that they are always applied when viewing report output.
2024-10-16 10:51:36 +01:00
Paul Holden
b1e9990de1
MDL-82475 reportbuilder: account for duplicate profile field names.
Long-term, it would be better to not allow this scenario to happen
at all but until then we'll have to work around it (see MDL-73461).
2024-10-16 09:33:10 +01:00
Paul Holden
9e5f911411
MDL-82809 reportbuilder: load custom/profile fields consistently.
Ensure that provided columns and filters for each use appropriate
checks to determine their availability (based on user permissions,
etc), rather than conditionally adding them to the entity.
2024-10-15 21:40:07 +01:00
Paul Holden
6437058f9d
MDL-72293 reportbuilder: re-factor to use native sortable events. 2024-10-10 15:16:36 +01:00
Paul Holden
d73a827a90
MDL-78118 reportbuilder: entity method for deprecating old tables.
When an entity no longer uses a table (due to re-factoring, etc), we
should avoid breaking third-party reports by deprecating the table
name from the entity instead of straight removal. In doing so, we
can then emit debugging to inform developers.
2024-10-07 18:44:58 +01:00