Paul Holden
403bf57a8c
MDL-78364 reportbuilder: earlier calculation of schedule recipients.
2023-06-05 16:22:35 +01:00
Paul Holden
551edbb9a6
MDL-77555 reportbuilder: improve SQL generation within filters.
...
Use native ANSI SQL syntax for numeric comparisons where possible,
define filter API for the case where filters must re-use the given
field SQL while ensuring uniqueness of any field parameters.
2023-03-27 10:29:37 +01:00
Paul Holden
478861b4d1
MDL-77555 reportbuilder: method to ensure unique parameters in SQL.
2023-03-27 10:29:37 +01:00
Paul Holden
8f296f6528
MDL-77692 reportbuilder: format custom field condition/filter names.
2023-03-20 16:32:16 +00:00
Paul Holden
b60518501f
MDL-77321 reportbuilder: cache list of loaded reports per user.
...
Since 0188af39 we've cached loaded reports, however there was an
edge case in those report sources that relied on the current user
as part of their own initialization (e.g. checking capabilities).
Co-authored-by: Marina Glancy <marina@moodle.com >
2023-02-27 21:21:45 +00:00
Paul Holden
0e6bc44970
MDL-76873 reportbuilder: correct checks for profile field visibility.
2023-02-20 09:22:14 +00:00
Mikel Martín
d57345bf06
MDL-77223 reportbuilder: Fix first report column as integer
2023-02-13 16:16:11 +01:00
Andrew Nicols
93f6ce8bfe
Merge branch 'MDL-77091-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE
2023-02-06 12:59:46 +08:00
Paul Holden
6299d39bf2
MDL-75345 reportbuilder: improve course/user custom report tests.
...
Ensure column and filters provided by each source have sufficient
coverage. Re-factor individual entity/helper class tests to test
their own specific implementation only.
Remove now-defunct test fixtures.
2023-02-01 15:41:24 +00:00
Paul Holden
b56a5e0dfb
MDL-77091 reportbuilder: set base time in schedule test generator.
...
The base time allows for the setting of the "current time" for the
purposes of the schedule test against recurrence configuration.
We should ensure the generator method allows this property so that
it can be used when calculating the initial "next send time" of the
schedule upon creation (and avoiding excessive recursion when the
actual current time is used for the calculation).
2023-02-01 14:39:44 +00:00
Paul Holden
81cc2e6b41
MDL-76181 reportbuilder: sort columns during stress testing.
2022-12-29 13:57:42 +00:00
Jun Pataleta
889e427df0
Merge branch 'MDL-75358-400' of https://github.com/marinaglancy/moodle into MOODLE_400_STABLE
2022-10-31 10:10:09 +08:00
Sara Arjona
92ef33c4e0
Merge branch 'MDL-75791-400' of https://github.com/marinaglancy/moodle into MOODLE_400_STABLE
2022-10-20 16:36:54 +02:00
Ilya Tregubov
20288fee39
Merge branch 'MDL-72058-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE
2022-10-20 15:42:48 +03:00
Paul Holden
38c8f8be7d
MDL-75811 reportbuilder: concatenate using list seperator lang config.
2022-10-13 16:26:18 +02:00
Víctor Déniz
3276137f1a
Merge branch 'MDL-75192-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE
2022-10-06 01:08:57 +01:00
Víctor Déniz
1eaf570ea7
Merge branch 'MDL-75729-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE
2022-10-05 22:07:56 +01:00
Paul Holden
21478a1e5e
MDL-72058 reportbuilder: replace custom dataformat export format.
...
The formatting of exported dataformat content is now always dependent
on whether the format supports HTML or not, so we no longer need our
custom export class for providing the same.
2022-10-03 09:15:58 +01:00
Andrew Nicols
d7f8f844bd
Merge branch 'MDL-75721-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE
2022-09-29 11:57:27 +08:00
Paul Holden
6f5fc5f1ee
MDL-75192 reportbuilder: observe start day in current week filter.
...
Ensure we observe the site configuration/preference for calendar
first day of the week, in the current week date filter.
2022-09-28 13:37:01 +01:00
Andrew Nicols
e6983a7a09
Merge branch 'MDL-75447-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE
2022-09-28 12:43:27 +08:00
Marina Glancy
9ddc556300
MDL-75791 reportbuilder: set persistent for active conditions
2022-09-19 16:54:21 +02:00
Marina Glancy
be60921e14
MDL-75358 reportbuilder: display nulls as empty cells in aggregation
2022-09-19 14:44:01 +02:00
Marina Glancy
4e8013e418
MDL-75358 reportbuilder: display nulls as empty cells for numeric/bool
2022-09-19 14:43:56 +02:00
Paul Holden
3e97c3ee83
MDL-75721 reportbuilder: select from main table in absence of columns.
...
Ensure any joins added to the report itself are also present.
2022-09-15 17:07:20 +01:00
Paul Holden
4bd6777cfb
MDL-75729 reportbuilder: improve handling of card toggle button.
2022-09-14 10:18:55 +01:00
Jun Pataleta
f47c75b8ae
Merge branch 'MDL-75311_400' of https://github.com/lostrogit/moodle into MOODLE_400_STABLE
2022-09-07 00:19:12 +08:00
Paul Holden
bded9dee9d
MDL-73938 reportbuilder: better Oracle support of long text columns.
...
Specifically during column grouping/aggregation, we need to avoid CLOB
datatype inconsistencies (ORA-00932).
2022-09-05 12:08:57 +01:00
Paul Holden
459334249b
MDL-73938 reportbuilder: add filters API to support stress testing.
...
Filter types can now define sample values, to be used in forthcoming
stress test helpers, in order for them to become active in a report.
2022-09-05 11:15:30 +01:00
Paul Holden
2ae6bde9dc
MDL-75447 reportbuilder: return only valid audience instances.
2022-09-02 12:33:59 +01:00
Ilya Tregubov
c4b3e06f8a
Merge branch 'MDL-75185-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE
2022-08-03 16:27:46 +04:00
Paul Holden
8ee995dfad
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:55 +01:00
Carlos Castillo
8eee29fb93
MDL-75311 reportbuilder: Fix error when send report schedule
2022-07-27 08:52:44 -05:00
Paul Holden
321a8cb0ca
MDL-74656 reportbuilder: cast fields to char on mssql during concat.
2022-07-27 08:22:10 +01:00
Paul Holden
39d606ec27
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:42:30 +01:00
Paul Holden
fdca502808
MDL-75185 reportbuilder: order report source listing alphabetically.
2022-07-08 10:07:18 +01:00
David Matamoros
cca619f966
MDL-74885 reportbuilder: format value using percents from lang pack
2022-07-06 08:25:10 +02:00
Ilya Tregubov
9009e1bd30
Merge branch 'MDL-74599-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE
2022-06-06 16:12:06 +06:00
Mikel Martín
86899b14cb
MDL-74377 reportbuilder: Fix dimmed text for dropdown items
...
To show inactive/unavailable rows '.dimmed_text' class usages have been replaced with '.text-muted'.
2022-05-18 15:43:44 +02:00
Paul Holden
8b2b7f97ee
MDL-74599 reportbuilder: use context of current report when present.
2022-05-04 14:30:11 +01:00
Ilya Tregubov
34c4b3ce0c
Merge branch 'MDL-74563-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE
2022-05-04 09:26:06 +06:00
Paul Holden
870c5ffbde
MDL-74479 reportbuilder: account for custom field context in output.
2022-04-27 15:47:29 +06:00
Paul Holden
3dbad11471
MDL-74563 reportbuilder: cast operator parameter in number filter.
...
Add missing form labels, too.
2022-04-25 21:44:48 +01:00
Paul Holden
7d33385a1d
MDL-74477 reportbuilder: sortable custom user profile field columns.
2022-04-25 13:40:12 +06:00
Shamim Rezaie
b5236ed40f
Merge branch 'MDL-74456' of https://github.com/paulholden/moodle
2022-04-11 13:11:17 +10:00
Paul Holden
509bdf4bc5
MDL-74456 reportbuilder: format report/schedule names in actions.
...
Ensure audience names are also formatted in scheduling form.
2022-04-07 13:10:24 +01:00
Paul Holden
c00a97c527
MDL-74341 reportbuilder: re-factor audience form permission checks.
2022-04-01 18:13:19 +01:00
Andrew Nicols
465a300e47
Merge branch 'MDL-74370' of https://github.com/paulholden/moodle
2022-03-31 09:30:28 +08:00
Paul Holden
7ca314023a
MDL-74370 reportbuilder: fix permission check to edit own reports.
2022-03-30 16:26:33 +01:00
Paul Holden
dcda9c08e2
MDL-74342 reportbuilder: remove unnecessary template/dataset values.
2022-03-29 09:46:55 +01:00