Commit graph

102688 commits

Author SHA1 Message Date
Neill Magill
653af355dc MDL-72767 forum: Stop duplicate digests being created
This change is to stop there being a possibility of 2 digests tasks
being created for a user on the day that MDL-72767 is applied.
2021-11-01 08:49:47 +00:00
Neill Magill
42171eb435 MDL-72767 forum: Ensure digests are sent
Before this change if a new post was made after the digest time but
before todays daily digest had been sent the run time on the digest
would be set to the next day resulting in no digest being sent to
the user.

By adding the server midnight to the custom data on the task we
ensure that in this case a new adhoc task is created for the next
day leaving the current one to get processed.

Server midnight is used so that if the digest time setting is
changed we would not get two tasks queued for the same day.
2021-11-01 08:49:46 +00:00
Neill Magill
7c8942046a MDL-72767 forum: Fix PHPDoc 2021-11-01 08:49:46 +00:00
Ilya Tregubov
03eca63387 Merge branch 'MDL-72736-master-v3' of git://github.com/peterRd/moodle 2021-11-01 08:19:24 +01:00
Peter Dias
d632240ac4 MDL-72736 course: Switch tests to classic only 2021-11-01 15:17:00 +08:00
Ilya Tregubov
2b45c78426 Merge branch 'MDL-72172-master' of git://github.com/dravek/moodle 2021-11-01 07:26:34 +01:00
Jun Pataleta
6f7defeeb6 Merge branch 'MDL-72588' of git://github.com/dravek/moodle 2021-11-01 11:22:48 +08:00
Peter Dias
0f20d7bba9 MDL-72736 course: Remove nav links if index is available 2021-11-01 08:28:07 +08:00
Andrew Nicols
3535fcca7a Merge branch 'MDL-72921' of https://github.com/stronk7/moodle 2021-11-01 07:18:34 +08:00
Andrew Nicols
2c32a5f8d8 Merge branch 'MDL-72660-master' of git://github.com/ferranrecio/moodle 2021-11-01 06:50:51 +08:00
AMOS bot
f89d8cd993 Automatically generated installer lang files 2021-10-30 00:07:29 +00:00
Eloy Lafuente (stronk7)
b5c6ce0d7f MDL-72921 generators: exported users now match the plan size definition
Before this patch the exported users (to csv file that jmeter consumes)
were all the enrolled users in the test course. And that's ok when the
number of users enrolled match the number of concurrent threads planned
for a jmeter plan (each thread is a user).

But when both numbers don't match, that can lead to the jmeter plan
not behaving as expected, because it iterates over the excessive users
in the file, leading to some users having run 5 loops, others 4...

The only way to make results more consistent is to, always, ensure that
the number of users exported for the plan match the plan size and not
the site size.

And that's what this issue exactly does, restrict the export to the
number of threads that the plan will have. So every user always runs
the very same number of loops.
2021-10-29 18:03:39 +02:00
Eloy Lafuente (stronk7)
b16fc54103 on-demand release 4.0dev+ 2021-10-29 17:16:34 +02:00
Eloy Lafuente (stronk7)
c05e63bf5f Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-10-29 17:16:29 +02:00
Ilya Tregubov
0a34a151c9 Merge branch 'MDL-72743' of git://github.com/stronk7/moodle 2021-10-29 13:57:58 +02:00
Eloy Lafuente (stronk7)
a23cc25ccd MDL-72743 phpunit: Skip test until MDL-72950 is fixed
It's good to keep the test because it's not easy to
reproduce the issue to be fixed. Part of the fix will
be to remove this skip.
2021-10-29 13:36:36 +02:00
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
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
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