Commit graph

101284 commits

Author SHA1 Message Date
Vitaly Potenko
6e7d77d11c MDL-69194 user: make core_user_update_users return warnings
The external function 'core_user_update_users()' always returned 'null' no matter
if a user or users were successfully updated or there were some failures.
So, there was no way for the caller to know which users were updated and which were not.
After the commit changes the function returns an 'external_warnings' instance. The function uses
a delegated transaction for each user to update within a loop. This enables the function to update
as many users as possible. This differs from the previous behavior of the function when it used
a delegate transaction outside of the loop where the users were updated. This resulted in a rollback
of the whole users updating in case any of the users had some invalid data. For each user within a loop
a 'try-catch' block is used to throw exceptions which are actually returned
as warnings by the function when they are caught.
2021-06-07 05:44:49 +00:00
Sara Arjona
5f91cbb611 MDL-71135 course: core_course_get_state external method 2021-06-04 16:43:28 +02:00
Sara Arjona
f7b0960d18 MDL-71135 course: add legacy_format_renderer support
Until Moodle 4.0, renderer.php file was optional (although highly recommended)
for course formats. From Moodle 4.0 onwards, renderer is required to support
the new course editor implementation.
The legacy_format_renderer class has been created for backward compatibility,
to avoid some errors with course formats (such as social) without the renderer
file. Apart from that, course_format->get_renderer() method has been reviewed
to use this legacy_format_renderer when no renderer.php file is found.
2021-06-04 16:43:06 +02:00
Paul Holden
7f6364971e MDL-71052 course: use filetypes setting for course overview files. 2021-06-04 09:35:15 +01:00
Jordi Pujol Ahulló
9c4510a358 MDL-70230 admin: add setting sched. task status
When defining settings that are used by scheduled tasks,
it is also useful, or even needed, to know the status
of that scheduled task to have the whole big picture of
that part of the system.

Based on the admin_setting_description, this new setting
reports its name, its status, a link to the configuration.

When adding a new setting of this type, the user can add
an extra description field to complete the whole meaning.
2021-06-04 08:12:16 +02:00
Mikhail Golenkov
f3cd860698 MDL-71471 assign: Remove submission from queue when converted in web 2021-06-04 15:18:59 +10:00
Eloy Lafuente (stronk7)
411150a424 weekly release 4.0dev 2021-06-03 23:56:05 +02:00
Eloy Lafuente (stronk7)
99f76ae180 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-06-03 23:56:01 +02:00
sam marshall
007cde2eab MDL-71559 core_user: Fields support for PROFILE_VISIBLE_TEACHERS 2021-06-03 11:23:06 +01:00
Dongsheng Cai
4357b7ef16 MDL-70846 accessibility: update color to increase contrast 2021-06-03 13:52:05 +10:00
Dongsheng Cai
e3690a392d MDL-70846 accessibility: update tree attributes to pass a11y check
- Move aria-* atrributes from <p> to <li>
- Move "role" attribute from <p> to <li>
- Update behat tests

Based on reference implementation from:
- https://www.w3.org/TR/wai-aria-practices-1.1/examples/treeview/treeview-2/treeview-2a.html
- https://www.w3.org/WAI/GL/wiki/Using_ARIA_trees
2021-06-03 13:52:04 +10:00
Andrew Nicols
95fed58b5e Merge branch 'MDL-71741-master' of git://github.com/HuongNV13/moodle 2021-06-03 11:51:12 +08:00
Huong Nguyen
711d309aa3 MDL-71741 portfolio: Reset header information between requests
The reset process also removes the CURLFile option in the HTTP object,
which will avoid the serialisation issue on PHP7.4 and upward
2021-06-03 10:49:50 +07:00
Andrew Nicols
1edd0acaaf Merge branch 'MDL-71661' of https://github.com/paulholden/moodle 2021-06-03 11:44:57 +08:00
abgreeve
c5a08d897d Merge branch 'MDL-71284-master' of git://github.com/lucaboesch/moodle 2021-06-03 11:42:53 +08:00
Andrew Nicols
ad2d9ec710 Merge branch 'MDL-71668-master' of git://github.com/rezaies/moodle 2021-06-03 11:31:42 +08:00
Andrew Nicols
5bbe63c584 Merge branch 'MDL-71622' of https://github.com/stronk7/moodle 2021-06-03 11:18:25 +08:00
Andrew Nicols
aaba6ccce3 Merge branch 'MDL-71737-master' of git://github.com/HuongNV13/moodle 2021-06-03 11:06:57 +08:00
abgreeve
6176e350fc Merge branch 'MDL-71693' of git://github.com/paulholden/moodle 2021-06-03 10:17:11 +08:00
abgreeve
e634ad8e3d Merge branch 'MDL-68927' of https://github.com/paulholden/moodle 2021-06-03 09:47:06 +08:00
abgreeve
ef1d17c8ba Merge branch 'MDL-71644-master' of https://github.com/NashTechOpenUniversity/moodle 2021-06-03 09:40:43 +08:00
Eloy Lafuente (stronk7)
439dd153fe Merge branch 'MDL-71476-drop_myisam_migrate' of https://github.com/leonstr/moodle 2021-06-03 00:00:07 +02:00
Eloy Lafuente (stronk7)
0f5e9aa759 Merge branch 'master-MDL-71438_v2' of https://github.com/golenkovm/moodle 2021-06-02 23:51:52 +02:00
Paul Holden
e2327b5219 MDL-71682 course: remove deprecated non-AJAX activity chooser call.
The deprecated method to render the dropdown based activity chooser
from 430746d3 was still being called, which produced debugging on
the site when doing so.
2021-06-02 21:00:24 +01:00
Tim Hunt
1287ecaeff MDL-71838 quiz reports: average rows calc can run out of memory
Should not use get_records when you mean record_exists.
2021-06-02 16:06:32 +01:00
sam marshall
171313781d MDL-71836 core_enrol: Cannot search for users by username 2021-06-02 14:52:43 +01:00
Mikhail Golenkov
ee3c6ad3ac MDL-71438 blocks: Add index on mdl_user_preferences.name 2021-06-02 22:10:37 +10:00
sam marshall
92bcadb9a8 MDL-71832 core_admin: Browse users page, sort by custom field fails
The failure was because the sort parameter in URL is like
profile_field_xx, but PARAM_ALPHANUM strips the _ symbols.
2021-06-02 12:03:37 +01:00
Brendan Heywood
fbb36f8977 MDL-67822 report_performance: Add DB schema check 2021-06-02 18:45:12 +10:00
Ilya Tregubov
b071a7b838 MDL-71382 course: Don't allow empty name for section 0. 2021-06-02 08:42:12 +02:00
Andrew Nicols
9d9352e01a Merge branch 'master-MDL-70337' of https://github.com/golenkovm/moodle 2021-06-02 12:20:47 +08:00
Peter Dias
8e71f6b1f1 MDL-65637 core_oauth2: Introduce a new custom linkedin oauth2 client 2021-06-02 08:11:38 +08:00
Peter Dias
169e1812ed MDL-65637 core_oauth2: Create new oauth2 mapping function
Separated userinfo mapping into a function and new unit test
2021-06-02 08:11:38 +08:00
AMOS bot
0c93e0fb28 Automatically generated installer lang files 2021-06-02 00:07:41 +00:00
Brendan Heywood
7d96f74f6f MDL-71806 report_security: Improve public paths check 2021-06-01 18:24:53 +10:00
Andrew Nicols
73d178eb8f Merge branch 'MDL-71731' of https://github.com/stronk7/moodle 2021-06-01 12:46:54 +08:00
Eloy Lafuente (stronk7)
219ec6648c Merge branch 'MDL-71474' of https://github.com/paulholden/moodle 2021-05-31 23:03:16 +02:00
Eloy Lafuente (stronk7)
cd03d5570b Merge branch 'MDL-70905-master' of https://github.com/kabalin/moodle 2021-05-31 22:41:28 +02:00
Eloy Lafuente (stronk7)
1a8f79a177 Merge branch 'MDL-71595-master' of https://github.com/sammarshallou/moodle 2021-05-31 22:34:39 +02:00
Shamim Rezaie
2ea485da78 MDL-71668 editor_atto: Accissibility focus styling for Atto buttons
Make all Atto buttons consistent in the way they show the focus outline
2021-05-31 19:20:49 +10:00
AMOS bot
86690ba498 Automatically generated installer lang files 2021-05-29 00:07:46 +00:00
Paul Holden
fcbb2bda56 MDL-71474 mod_chat: remove redundant next session action item.
Deprecate now unused lang string for same.
2021-05-28 14:49:11 +01:00
Huong Nguyen
140252ad0f MDL-71737 portfolio: Make is_valid_image become internal function 2021-05-28 15:03:41 +07:00
Huong Nguyen
5f91063c91 MDL-71741 portfolio: Use the correct configurations 2021-05-28 08:52:05 +07:00
Luca Bösch
0fb0743025 MDL-71284 assign: prevent double escaping assignment name. 2021-05-27 20:31:42 +02:00
Eloy Lafuente (stronk7)
515fc0447e MDL-71731 phpunit: isolate tests requiring lots of peak mem
It's mostly addDocuments(), used by test_add_document_batch_large()
with 100 big documents what requires a lot of ram
although apparently, it's freed (partially) once ended.
Just the peak usage remains high. In any case, isolating that
test to avoid the non-freed side of it to consume too
much memory for the rest. (We allow "only" 2GB).

Still, I think that there is a good work about to detect which
tests are leaking / consuming too much, I'd bet there are
a bunch running completely out of control.
2021-05-27 19:42:22 +02:00
Eloy Lafuente (stronk7)
72f838ad96 MDL-71622 behat: use own fork of friends-of-behat/mink-extension
Upstream behat/mink-extension isn't updated since 2018.

So we switch to friends-of-behat/mink-extension until
upstream situation is clarified.

But friends-of-behat/mink-extension has some PHP8 issues
that, at the time of writting this, have not been solved:

- https://github.com/FriendsOfBehat/MinkExtension/pull/9

So we are temporarily changing to one fork:

https://github.com/moodlehq/MinkExtension

Whenever those issues are solved by friends-of-beha or behat
we will change back to them and remove our fork.

Generated with composer 2.x and PHP 7.3
2021-05-27 19:42:14 +02:00
Sara Arjona
30b8ad51f4 weekly release 4.0dev 2021-05-27 17:45:06 +02:00
Sara Arjona
11b4b412f5 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2021-05-27 17:45:03 +02:00
Sara Arjona
85d9ea2c09 Merge branch 'MDL-69703' of git://github.com/paulholden/moodle 2021-05-27 12:24:47 +02:00