105990 Commits

Author SHA1 Message Date
Jun Pataleta
50fe735e5a Merge branch 'MDL-75777' of https://github.com/stronk7/moodle 2022-09-20 15:12:34 +08:00
Víctor Déniz
06ba397c1c Merge branch 'MDL-74941-master' of https://github.com/lucaboesch/moodle 2022-09-20 08:08:55 +01:00
Steve Bader
0e18ad33a1 MDL-74941 qtype_calculated: Copy dataset from previous question version 2022-09-20 08:11:04 +02:00
Luca Bösch
27093b1893 MDL-74941 qtype_calculated: Fix for usage calculation
The patch for the helper functions is by Nathan Nguyen
<nathannguyen@catalyst-au.net> whom I wish to thank.
2022-09-20 08:10:55 +02:00
Ilya Tregubov
e08cc53b37 Merge branch 'master-MDL-74993' of https://github.com/golenkovm/moodle 2022-09-20 09:06:05 +04:00
Ilya Tregubov
5ca555767e Merge branch 'MDL-75153-master-2' of https://github.com/mihailges/moodle 2022-09-20 09:01:42 +04:00
Mihail Geshoski
70f9e8bb23 MDL-75153 grade: Fix incorrect xpath in the behat step definitions 2022-09-20 00:17:56 +08:00
Mihail Geshoski
3001995be8 MDL-75153 grade: Update behat tests 2022-09-20 00:17:56 +08:00
Mihail Geshoski
af74a5534b MDL-75153 grade: Deprecate select_in_gradebook_navigation_selector()
Deprecates the select_in_gradebook_navigation_selector() function in
behat_grade.php and removes all usages. The select menu field supports
the same functionality and this function can be simply replaced with
behat_forms::i_set_the_field_to().
2022-09-20 00:17:56 +08:00
Mihail Geshoski
0e1cdfde1d MDL-75153 grade: Update the general tertiary nav selector in gradebook
Updates the general tertiary nav selector in gradebook to use the new
structure that utilizes the existing select_menu output component.
2022-09-20 00:17:56 +08:00
Mihail Geshoski
2b99e648cb MDL-75153 theme: Add template and styling for the tertiary nav selector
Adds new template dedicated for the general tertiary navigation element
which utilizes the exising select_menu output component. Also, adds
custom styling to the tertiary navigation selector element.
2022-09-20 00:17:56 +08:00
Mihail Geshoski
460744a6a6 MDL-75153 form: Behat support for group structures in select menu field
Adds behat support for group structures in the select menu field. When
looking for a particular option you can further specify the group under
which this option should be located by using the '>' delimiter
(e.g. "Group name > Option name"). In addition to that, this commit
intorduces new step definition which can be used to check whether the
select menu field contains a particular option.
2022-09-20 00:17:55 +08:00
Mihail Geshoski
3aa5e2688a MDL-75153 output: Styling improvements in the select_menu component 2022-09-20 00:17:55 +08:00
Mihail Geshoski
3cf4dd206f MDL-75153 output: Fix the group option and label support in select_menu
The following commit fixes the current logic that is used to return the
selected option and take into account structures with group options.
Also, it adds a default value to the $labelattributes class property to
to fix the issues that occur then the label is not explicitely set by
set_label().
2022-09-20 00:17:55 +08:00
Ilya Tregubov
b6425b9ce1 Merge branch 'MDL-75065-master' of https://github.com/devlionco/moodle 2022-09-19 14:00:49 +04:00
Eloy Lafuente (stronk7)
839c2e5c18 MDL-75777 phpunit: Move tests to use correct names and ns (take#6)
Applied the following changes to various testcase classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Remove file phpdoc block
- Remove MOODLE_INTERNAL if not needed.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.
2022-09-19 11:01:21 +02:00
Jun Pataleta
a4c97a7d7c Merge branch 'MDL-75757' of https://github.com/stronk7/moodle 2022-09-19 13:02:02 +08:00
Jun Pataleta
359e7c7ca4 Merge branch 'MDL-75186-master' of https://github.com/sarjona/moodle 2022-09-19 12:01:53 +08:00
Eloy Lafuente (stronk7)
6be384ee8f MDL-75757 phpunit: Add some tolerance to a few failing assertions
Recently, PHPUnit (all versions) did some changes about how the
comparators worked and this has caused some float comparisons
to stop working.

We need to move them to assertEqualsWithDelta(), allowing a small
tolerance to workaround the floats comparison problem.

0.00001 has been decided. And applied to all the similar assertions
within the unittest function, so if more cases are added to them
better be copied with the agreed tolerance.
2022-09-18 15:55:36 +02:00
Víctor Déniz
0c951c5948 Merge branch 'MDL-74762-Master' of https://github.com/catalyst/moodle-MDL-72752 2022-09-16 14:23:49 +01:00
Jun Pataleta
4654ee5785 Merge branch 'MDL-75295_master' of https://github.com/TomoTsuyuki/moodle 2022-09-16 21:16:58 +08:00
Nathan Nguyen
f02c16c445 MDL-74762 qbank_statistics: improve performance loading the data
This issue greatly improves the performance of displaying statistics in
the question bank.

1. The required quiz statistics are now pre-computed by a scheduled task.

2. Cached statistics in the database are now never cleaned up, so the
   pre-computed stats are always available.

3. The way the cached statistics are loaded for each question
   that is being displayed is now a bit more efficient.

4. Related to that, there is a new callback which activities can implement,
   if they want their question statistics to be included in the ones shown
   in the question bank.

Note, there is still further improvement possible to load the statistics
for all questions being displayed in bulk. However, that must wait for a
future issue, MDL-75576. The other improvements in this issue are
significant and we did not want to delay releasing them.

Co-authored-by: Jonathan Champ <jrchamp@ncsu.edu>
Co-authored-by: Tim Hunt <t.j.hunt@open.ac.uk>
2022-09-16 21:34:00 +10:00
Tomo Tsuyuki
260cc864cf MDL-75295 assignfeedback_editpdf: Convert PDF to png at once 2022-09-16 19:31:05 +10:00
Sara Arjona
16576b56c4 Merge branch 'MDL-75108-master' of https://github.com/sammarshallou/moodle 2022-09-16 11:23:14 +02:00
Sara Arjona
930c204953 Merge branch 'MDL-75149-master' of https://github.com/ferranrecio/moodle 2022-09-16 11:20:36 +02:00
Sara Arjona
a66cdcd9a8 MDL-75186 mod_data: Export saved presets 2022-09-16 11:12:14 +02:00
Jun Pataleta
4f8106e6cb Merge branch 'MDL-73933-master' of https://github.com/ferranrecio/moodle 2022-09-16 10:49:23 +08:00
Ferran Recio
8777705827 MDL-73933 core_courseformat: hide and show reactive action
Hide, show and stealth actions were still using the old YUI
module. Now they are using the new course editor
2022-09-15 16:39:29 +02:00
Sara Arjona
b077af7e89 weekly release 4.1dev 2022-09-15 16:11:47 +02:00
Sara Arjona
979b41f508 NOBUG: Fixed file access permissions 2022-09-15 16:11:47 +02:00
Sara Arjona
3a9b299ce7 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2022-09-15 16:11:45 +02:00
Jun Pataleta
95e2214283 Merge branch 'MDL-75398-master' of https://github.com/junpataleta/moodle 2022-09-15 11:34:56 +08:00
Ferran Recio
f69b48865a MDL-75398 core_courseformat: deprecate 4th cmname construct param 2022-09-15 11:28:55 +08:00
Jun Pataleta
8900c4a820 Merge branch 'MDL-75716' of https://github.com/stronk7/moodle 2022-09-15 09:55:55 +08:00
Jun Pataleta
46849455be Merge branch 'MDL-75714' of https://github.com/stronk7/moodle 2022-09-15 09:24:50 +08:00
Eloy Lafuente (stronk7)
d1bf45ec18 MDL-75714 navigation: Cover a couple of situations with behat
- Guest user attempting to access to single-activity course.
- Not enrolled user attempt to access to single-activity course.

Both should, by default, land to the "cannot access/enrol" page.
2022-09-14 23:35:19 +02:00
Stefan Hanauska
8e371f138a MDL-75714 navigation: Check if node is false 2022-09-14 23:35:15 +02:00
Víctor Déniz
db13ed76ff Merge branch 'MDL-75558-master' of https://github.com/ssj365/moodle 2022-09-14 22:30:33 +01:00
Víctor Déniz
9c1f55ae58 Merge branch 'MDL-75723' of https://github.com/paulholden/moodle 2022-09-14 20:30:37 +01:00
Víctor Déniz
edb09c61d5 Merge branch 'MDL-74965-master' of https://github.com/ssj365/moodle 2022-09-14 20:23:44 +01:00
Víctor Déniz
63f31ccc7b Merge branch 'MDL-75625-master' of https://github.com/ferranrecio/moodle 2022-09-14 20:00:06 +01:00
Víctor Déniz
e6fd69fae9 Merge branch 'MDL-75369-master' of https://github.com/sammarshallou/moodle 2022-09-14 19:50:56 +01:00
Víctor Déniz
5378c89521 Merge branch 'MDL-74140' of https://github.com/paulholden/moodle 2022-09-14 19:36:45 +01:00
Víctor Déniz
e672e4f6dd Merge branch 'MDL-75639-master' of https://github.com/dravek/moodle 2022-09-14 19:13:01 +01:00
Sara Arjona
c739cc14af Merge branch 'MDL-75413-master' of https://github.com/sarjona/moodle 2022-09-14 18:04:51 +02:00
Shamiso.Jaravaza
8e37c9f24d MDL-74965 mod_bigbluebuttonbn: Fix error in role 2022-09-14 09:10:41 -06:00
Sara Arjona
aa020451c7 MDL-75413 mod_data: Add resources preset 2022-09-14 13:12:41 +02:00
Ferran Recio
2b48b29c86 MDL-75149 mod_data: add preview to presets 2022-09-14 12:30:13 +02:00
Sara Arjona
33277f99f1 Merge branch 'MDL-74010' of https://github.com/paulholden/moodle 2022-09-14 11:41:42 +02:00
Jun Pataleta
a4fb12a1a3 Merge branch 'MDL-69888-user-fully-setup-cache' of https://github.com/brendanheywood/moodle 2022-09-14 11:33:47 +08:00