255 Commits

Author SHA1 Message Date
Ilya Tregubov
c3d74f6991 Merge branch 'MDL-74364-master' of https://github.com/dravek/moodle 2022-08-17 14:53:50 +04:00
David Matamoros
0a66ba0188 MDL-74364 course: Add course participants datasource
- New Report Builder source for course participants
- New course completion entity
- New course enrolment entity
- New course last access entity
2022-08-17 12:40:34 +02:00
Shamim Rezaie
40f6f35463 Merge branch 'MDL-67685_Master' of https://github.com/tuanngocnguyen/moodle 2022-08-17 01:52:07 +10:00
Ilya Tregubov
2764133fb7 Merge branch 'MDL-75185' of https://github.com/paulholden/moodle 2022-08-03 16:26:55 +04:00
Jake Dallimore
d95071b537 Merge branch 'MDL-74721' of https://github.com/lostrogit/moodle 2022-08-03 15:47:38 +08:00
Paul Holden
905b394176 MDL-75205 reportbuilder: include report parameters on filters reset.
When resetting report filters, we need to include the original report
parameters in the external method call to ensure all those that are
required during validation are present (e.g. when determining if user
can view the current system report).
2022-08-02 12:43:52 +01:00
Nathan Nguyen
f32913dc65 MDL-67685 core_reportbuilder: Add autocomplete filter 2022-08-02 18:21:37 +07:00
Paul Holden
637e3a7c88 MDL-74957 reportbuilder: external method for triggering report view. 2022-07-29 14:11:34 +01:00
Jun Pataleta
0fb9cdedbb Merge branch 'MDL-75235' of https://github.com/paulholden/moodle 2022-07-29 14:32:37 +08:00
Paul Holden
5b91dabaac MDL-75235 reportbuilder: external method to set report filter values. 2022-07-28 10:47:42 +01:00
Jun Pataleta
72410a4ca1 Merge branch 'MDL-75256' of https://github.com/paulholden/moodle 2022-07-28 10:10:13 +08:00
Paul Holden
85544709d0 MDL-74656 reportbuilder: cast fields to char on mssql during concat. 2022-07-27 08:12:34 +01:00
Jun Pataleta
5b634ef13e Merge branch 'MDL-74656' of https://github.com/paulholden/moodle 2022-07-26 20:03:39 +08:00
Paul Holden
d16ea57405 MDL-75235 reportbuilder: allow default filter form to be disabled.
This allows for custom filter forms to be implemented, rather than
using the default one for system reports.
2022-07-22 09:17:48 +01:00
Paul Holden
d0b5241786 MDL-75256 task: move abstract get_name method to base class.
Allow adhoc tasks to implement this method, so they too can have
descriptive names for themselves. Default implementation added to
return the class name itself.
2022-07-22 09:13:53 +01:00
Paul Holden
5582bc2ded MDL-74656 reportbuilder: ensure nulls preserved in column callbacks.
When concatenating column fields in order to perform aggregation on
them (e.g. group concatenation), we need to preserve all null values
in the data passed to each column callback.

Co-authored-by: Carlos Castillo <carlos.castillo@moodle.com>
2022-07-19 08:23:54 +01:00
Paul Holden
f1a800bb7c MDL-73867 reportbuilder: improve performance of the editable classes.
When instantiating classes that extend `inplace_editable` we can
improve performance by passing persistent instances we already have,
rather than re-requesting them.

Add test coverage to relevant classes.
2022-07-15 08:44:55 +01:00
Jun Pataleta
50598298ba Merge branch 'MDL-75152' of https://github.com/paulholden/moodle 2022-07-13 13:02:07 +08:00
Jake Dallimore
cb525f3575 Merge branch 'MDL-74777' of https://github.com/paulholden/moodle 2022-07-11 11:02:30 +08:00
Carlos Castillo
ac7713b7b0 MDL-74721 reportbuilder: Disabling live editing in custom reports 2022-07-10 16:52:25 -05:00
Paul Holden
c2c7fc9825 MDL-75185 reportbuilder: order report source listing alphabetically. 2022-07-08 09:59:09 +01:00
Jun Pataleta
2857a3219c Merge branch 'MDL-75054' of https://github.com/paulholden/moodle 2022-07-07 11:05:11 +08:00
David Matamoros
ecb95114e9 MDL-74885 reportbuilder: format value using percents from lang pack 2022-07-06 08:17:20 +02:00
Paul Holden
ec452a4e88 MDL-75152 reportbuilder: unique default tag aliases across entities. 2022-07-05 21:45:23 +01:00
Paul Holden
721f7a01e8 MDL-74777 reportbuilder: report filter by category/sub-categories.
AMOS BEGIN
 CPY [choosecategory,core_grades],[categoryselect,core_reportbuilder]
AMOS END
2022-06-24 11:44:50 +01:00
Paul Holden
eb44a074fb MDL-75054 reportbuilder: fix docblock for adding column callback.
Parameter type is now preserved, since ea45aefe.
2022-06-22 23:57:26 +01:00
Jun Pataleta
09410d2f91 Merge branch 'MDL-74715' of https://github.com/paulholden/moodle 2022-06-20 21:57:39 +08:00
Paul Holden
f961443652 MDL-74715 reportbuilder: switch event for adding filters/conditions.
Switch the select element event listener to that provided by custom
events helper, for adding report filters and conditions. This improves
cross-platform support.
2022-06-20 09:09:10 +01:00
Ilya Tregubov
70fb867346 Merge branch 'MDL-74694' of https://github.com/paulholden/moodle 2022-06-17 15:07:04 +04:00
Ilya Tregubov
85463a83f6 Merge branch 'MDL-73726' of https://github.com/paulholden/moodle 2022-06-15 14:36:16 +04:00
Jun Pataleta
86676d6811 Merge branch 'MDL-72184' of https://github.com/paulholden/moodle 2022-06-15 10:27:56 +08:00
Sara Arjona
fe08655918 Merge branch 'MDL-73842' of https://github.com/paulholden/moodle 2022-06-14 15:19:55 +02:00
Ilya Tregubov
6b1122b0ae Merge branch 'MDL-74453-master' of https://github.com/dravek/moodle 2022-06-13 15:03:42 +04:00
Paul Holden
9ebd801c07 MDL-73842 reportbuilder: add tags elements to course/user entities.
Both entities define columns and filters for related tags (referred
to as "interests" for users).

Create new generic tags filter type to facilitate this, which can be
re-used by any entities for components which support tagging.
2022-06-12 19:53:24 +01:00
Paul Holden
a1ba5c5f53 MDL-74694 reportbuilder: unit test coverage of external exporters. 2022-06-12 19:46:39 +01:00
Paul Holden
07d4be70f8 MDL-74694 reportbuilder: standardize report exporter boolean values.
Specify boolean properties as such, avoid direct interpolation into
templates.
2022-06-12 19:46:39 +01:00
Paul Holden
f9b4611156 MDL-72184 reportbuilder: make use of new methods moved to drivers. 2022-06-12 19:31:34 +01:00
Shamim Rezaie
0d61bf1b87 Merge branch 'MDL-73693' of https://github.com/paulholden/moodle 2022-06-10 13:12:35 +02:00
Shamim Rezaie
dea18d2f47 Merge branch 'MDL-73916-master' of https://github.com/dravek/moodle 2022-06-10 13:12:33 +02:00
Shamim Rezaie
8621fd2d67 Merge branch 'MDL-74720' of https://github.com/lostrogit/moodle 2022-06-07 14:30:19 +10:00
Carlos Castillo
04f0152a91 MDL-74720 reportbuilder: Limiting the number of custom reports 2022-06-06 08:57:13 -05:00
Ilya Tregubov
a1f60915d4 Merge branch 'MDL-74599' of https://github.com/paulholden/moodle 2022-06-06 15:48:21 +06:00
Paul Holden
72286f9296 MDL-73726 reportbuilder: restrict schedule formats to enabled types. 2022-06-06 09:32:36 +01:00
Paul Holden
9ec385a533 MDL-73693 reportbuilder: report filter by specific user. 2022-06-06 09:12:56 +01:00
Ilya Tregubov
3a9b097f5c Merge branch 'MDL-74600' of https://github.com/paulholden/moodle 2022-06-06 12:52:16 +06:00
David Matamoros
c6777c9cbf MDL-73916 reportbuilder: Allow to set default condition values
- Changes on datasource class to allow to set default condition values
- Added default condition 'suspended' set to 'no' on users datasource
2022-06-03 08:43:46 +02:00
David Matamoros
669e71b956 MDL-74453 reportbuilder: Add authentication method filter
- Add authentication method filter to the user entity
2022-06-03 08:40:06 +02:00
Sara Arjona
7d317cdc5d Merge branch 'MDL-73988' of https://github.com/paulholden/moodle 2022-05-31 17:04:23 +02:00
Shamim Rezaie
39ea22ece3 Merge branch 'MDL-74675' of https://github.com/paulholden/moodle 2022-05-31 14:12:32 +10:00
Jun Pataleta
9b6ad142af Merge branch 'MDL-73047_user_timecreated' of https://github.com/davosmith/moodle 2022-05-26 10:27:48 +08:00