102834 Commits

Author SHA1 Message Date
Paul Holden
0188af39a1 MDL-72588 reportbuilder: performance improvement to report loader.
Statically cache list of loaded reports during request lifecycle,
this ensures that computationally heavy initialisation routines
in system reports are only executed once (e.g. the access tab).
2021-10-29 12:50:20 +02:00
Paul Holden
42481d5c43 MDL-72588 reportbuilder: fix dynamic loading of report parameters.
This fixes an issue for system reports that are initialised with
parameters (such as the access report). Previously these parameters
were not preserved, when sorting/paging them via AJAX requests.

We now defer the initialisation of the report until the table
filterset has been set, ensuring all parameters are available.
2021-10-29 12:50:20 +02:00
David Matamoros
8a1e7d913f MDL-72588 reportbuilder: add report access tab.
This tab includes a system report that provides a listing of all
users who can access the report, taking into account all audiences
that have been created for it. Update page of users available
reports to obey audience configuration.

Fix filters JS form to ensure it is only loaded once.

Co-authored-by: Mikel Martín <mikel@moodle.com>
2021-10-29 12:50:20 +02:00
Mikel Martín
144084a2ac MDL-72588 reportbuilder: interface for managing report audiences.
Add new tab to editor, allowing user to select from available audience
types in order to grant access to their reports.

Co-authored-by: David Matamoros <davidmc@moodle.com>
2021-10-29 12:50:15 +02:00
David Matamoros
70085ef7ac MDL-72588 reportbuilder: implement audience helpers and classes.
Create the base audience class, to be extended by all audience types
across the site. Implement types allowing audiences to be created per
user, cohort or system role assignment.

The helper class is used for interrogating report audience instances
and retrieving access lists of those users able to view specific
reports.

Co-authored-by: Paul Holden <paulh@moodle.com>
2021-10-29 12:28:24 +02:00
Ferran Recio
41487c38ed MDL-72660 core_courseformat: course index completion icons 2021-10-29 11:49:45 +02:00
Andrew Nicols
d2d9d6087d MDL-72615 boxnet: Correct upgrade step for boxnet removal 2021-10-29 15:00:58 +08:00
Andrew Nicols
f764fa8e62 Merge branch 'MDL-72433-master' of git://github.com/peterRd/moodle 2021-10-29 11:27:39 +08:00
Andrew Nicols
415c771768 Merge branch 'MDL-52484-master' of git://github.com/peterRd/moodle 2021-10-29 11:22:20 +08:00
Andrew Nicols
a9eeca8c05 Merge branch 'MDL-72615-master' of git://github.com/cescobedo/moodle 2021-10-29 11:17:29 +08:00
Huong Nguyen
1e932d475c MDL-72895 Assignment: Fix colour contrast for grading navigation 2021-10-29 09:58:04 +07:00
Andrew Nicols
73ca68d3d5 Merge branch 'MDL-72779' of https://github.com/paulholden/moodle 2021-10-29 10:16:56 +08:00
Eloy Lafuente (stronk7)
ba1c3c0b88 Merge branch 'MDL-72781-master' of git://github.com/mickhawkins/moodle 2021-10-28 22:26:59 +02:00
Eloy Lafuente (stronk7)
440fac33bb Merge branch 'MDL-72843-qbank_comment-unit-testsuite-resolve' of https://github.com/catalyst/moodle-MDL-70329 2021-10-28 22:12:11 +02:00
Shamim Rezaie
18fb0358f3 Merge branch 'MDL-72874-master' of git://github.com/andrewnicols/moodle 2021-10-29 03:34:19 +11:00
Víctor Déniz
4c34afebae Merge branch 'MDL-71779-master' of git://github.com/ferranrecio/moodle 2021-10-28 17:08:16 +01:00
Shamim Rezaie
e852342d39 Merge branch 'MDL-72924-fix-component-initialisation-for-performance-checks' of https://github.com/keevan/moodle 2021-10-29 02:56:27 +11:00
Sara Arjona
4816fec3fa MDL-72945 badges: use default issuer contact
The defaultissuercontact was ignored if the sitebackpack email was set
to empty string..
2021-10-28 17:43:49 +02:00
Víctor Déniz
307c4b9d20 Merge branch 'MDL-72912' of https://github.com/timhunt/moodle 2021-10-28 15:43:57 +01:00
Ferran Recio
3d2a6eacae MDL-71779 core_courseformat: reactive add and delete sections 2021-10-28 16:41:17 +02:00
Eloy Lafuente (stronk7)
3efac737fe Merge branch 'MDL-63983' of https://github.com/NeillM/moodle 2021-10-28 16:23:15 +02:00
Ilya Tregubov
a9d44b0f75 Merge branch 'MDL-72801' of https://github.com/paulholden/moodle 2021-10-28 15:44:54 +02:00
Shamim Rezaie
674ce41ffe Merge branch 'MDL-71086' of https://github.com/paulholden/moodle 2021-10-29 00:10:24 +11:00
Ilya Tregubov
2f5565af80 Merge branch 'MDL-72098-master' of git://github.com/peterRd/moodle 2021-10-28 15:07:12 +02:00
Víctor Déniz
a826682819 Merge branch 'MDL-72901' of https://github.com/timhunt/moodle 2021-10-28 13:48:10 +01:00
Víctor Déniz
45029a10e2 Merge branch 'MDL-72806' of https://github.com/paulholden/moodle 2021-10-28 13:05:37 +01:00
Ilya Tregubov
de8a4af190 Merge branch 'MDL-72670-master' of git://github.com/cameron1729/moodle 2021-10-28 13:14:05 +02:00
Eloy Lafuente (stronk7)
a02a5cb90a MDL-72743 tests: tidy up the new test with NS/name/covers
Ideally any new test should be using a class name matching
the file name, and to use namespace when clearly belonging to
a component (sub-namespace also allowed for better accuracy).

And, also, adding a @covers label to indicate which class
(preferred, method is also possible) is being covered with the test.
2021-10-28 12:56:00 +02:00
Eloy Lafuente (stronk7)
49fc1fa292 Merge branch 'MDL-72743' of git://github.com/paulholden/moodle 2021-10-28 12:50:01 +02:00
Ferran Recio
cf045f4b1c MDL-72938 core_courseformat: fix section title with 2021-10-28 12:27:10 +02:00
Eloy Lafuente (stronk7)
e2f119e390 Merge branch 'MDL-72616-master' of git://github.com/cescobedo/moodle 2021-10-28 12:25:47 +02:00
Neill Magill
a8d9b17b4b MDL-63983 messaging: Improve the performance of non-contact searches
When the messagingallusers setting is disabled only contacts that are
on the same course as the user should be returned as results.

We can reduce the number of candidate users significantly by
pre-filtering them by being enrolled on the same courses as the user
performing the search.

Since we must also return the user themselves sometimes, even when they
are not enrolled on a course I used a UNION as the most efficient way of
retriving them, this meant that the order by had to reference returned
columns by number to be sufficiently cross-database compatiable.
2021-10-28 10:56:38 +01:00
Andrew Nicols
54b4418596 Merge branch 'MDL-72871' of https://github.com/stronk7/moodle 2021-10-28 14:51:34 +08:00
Jun Pataleta
4d10196dec Merge branch 'MDL-72316-master-2' of git://github.com/mickhawkins/moodle 2021-10-28 14:51:34 +08:00
Andrew Nicols
00483c9419 MDL-72827 quiz: Remove pause step from behat scenario 2021-10-28 14:51:34 +08:00
Michael Hawkins
2a2ece647a MDL-72316 filelib: Add ability for modules to directly load SVG images
This also implements the functionality for SCORM packages, which may
have SVG images embedded within their content which require loading
directly (and are only created by users with appropriate risk flag).
2021-10-28 12:56:52 +08:00
Andrew Nicols
f80a31b8b6 Merge branch 'MDL-72827-master' of git://github.com/peterRd/moodle 2021-10-28 11:51:29 +08:00
Peter Dias
44d06f8218 MDL-72827 quiz: Expand completion behat tests
- Update the behat tests to more precisely check the state in the completion report.
- Check combination of completion conditions with passing grade
2021-10-28 11:38:10 +08:00
Peter Dias
cb2afc668d MDL-72827 completion: Revert completion flow logic
- Reverts the custom flow logic introduced in the 52206
- Expand unit tests to cover different grade based completion settings
2021-10-28 11:38:10 +08:00
Huong Nguyen
c2979ff1cc MDL-72603 timeline: Lazy loading for timeline block
Replace timeline block pagination with "Show more activities" lazy loading
2021-10-28 09:12:14 +07:00
Andrew Nicols
88d5175d41 MDL-72263 theme: Adjust parameters for focusing close button 2021-10-28 08:51:16 +08:00
Andrew Nicols
62f1e0540e Merge branch 'MDL-72263-master-v02' of git://github.com/ferranrecio/moodle 2021-10-28 08:51:09 +08:00
Eloy Lafuente (stronk7)
4f271297ce Merge branch 'MDL-72879-master-enfix' of git://github.com/mudrd8mz/moodle 2021-10-27 22:12:11 +02:00
Jun Pataleta
369983e713 Merge branch 'MDL-72652-master' of git://github.com/mihailges/moodle 2021-10-27 22:28:21 +08:00
Eloy Lafuente (stronk7)
51b45f0c71 Merge branch 'MDL-55231-patch' of git://github.com/ilyatregubov/moodle 2021-10-27 15:22:32 +02:00
Ilya Tregubov
c1468388bc MDL-55231 core_course: Fix behat tests. 2021-10-27 13:25:58 +02:00
Ferran Recio
59128bb411 MDL-72263 courseformat: adding core/tree to course index 2021-10-27 10:54:56 +02:00
Mikel Martín
9113f9d2f9 MDL-72588 reportbuilder: convert editing interface into a tab.
In preparation for further tabs in this interface, convert the report
editor to use the Dynamic tabs API.

At the same time, update the editor JS and it's modules to add listeners
on `document` instead of the report element itself, which will move in
and out of the current DOM in the future as tabs are switched.

Co-authored-by: Paul Holden <paulh@moodle.com>
2021-10-27 10:05:53 +02:00
David Matamoros
b2dd94ab8b MDL-72588 reportbuilder: define schema/models for report audiences. 2021-10-27 10:05:44 +02:00
Jun Pataleta
472bdb44f3 Merge branch 'MDL-72669-master' of git://github.com/rezaies/moodle 2021-10-27 15:07:32 +08:00