Commit graph

27811 commits

Author SHA1 Message Date
Tim Hunt
6fdc0f8796 MDL-68256 task admin: usability improvements
In the table that lists the scheduled tasks:

1. There are badges to show which components are disabled.
2. The plugin name (e.g. auth_ldap) is shown as well as the
   human-readable name (e.g. LDAP server).
3. Where a time column has a non-default value, it is highlighted
   and the default is shown.
4. If the fail-delay is non-zero, the cell is highlighted.
4. If you just interacted with a task (looked at or edited the settings,
   did Run now, or cleared the fail delay) that row is highlighted,
   and scrolled into view when the page loads.

To support this, some of the methods for loading the default tasks
have been extended with an optional argument to leave 'R' as 'R'
rather than replacing with a random number.

Also, mixed into this commit are a bunch of coding style improvements.
Sorry I did not separate them out, but ultimately this makes the
Moodle code better.
2020-03-28 18:40:51 +00:00
Eloy Lafuente (stronk7)
1ee1ce36d6 MDL-68281 unit test: Include required class
Also, add missing line break, that I did not see 1 week ago.
2020-03-28 16:23:34 +01:00
Eloy Lafuente (stronk7)
6335ed82c2 MDL-68165 install: update the list of stale files for 3.9 2020-03-27 12:57:22 +01:00
Shamim Rezaie
613c130665 MDL-45227 atto_align: Make IE follow css styling 2020-03-27 21:32:06 +11:00
Shamim Rezaie
31d62654a6 MDL-45227 atto_rtl: Automatically set alignment when direction changes 2020-03-27 21:25:41 +11:00
Shamim Rezaie
372616ace0 MDL-45227 editor_atto: PR changes and improved behat 2020-03-27 21:25:41 +11:00
Avi Levy
dbae95c6da MDL-45227 editor_atto: add behat test for RTL and LTR direction 2020-03-27 21:25:41 +11:00
Nadav Kavalerchik
b10155308f MDL-45227 editor_atto: Add direction to default ATTO generated markup 2020-03-27 21:25:41 +11:00
Eloy Lafuente (stronk7)
70598a90ca Merge branch 'MDL-68183-master-mysqlpwdresetsql' of git://github.com/mudrd8mz/moodle 2020-03-26 01:08:04 +01:00
Eloy Lafuente (stronk7)
fee4dd7b20 Merge branch 'MDL-68116-master' of git://github.com/sarjona/moodle 2020-03-26 00:13:52 +01:00
Jun Pataleta
e17046d2c6 Merge branch 'MDL-67024-master' of git://github.com/farhan6318/moodle 2020-03-25 08:34:41 +08:00
Jake Dallimore
9b8fc9be6d Merge branch 'MDL-67934' of https://github.com/timhunt/moodle 2020-03-25 08:28:27 +08:00
Jake Dallimore
82a1e8da34 Merge branch 'MDL-68135-master' of git://github.com/rezaies/moodle 2020-03-24 12:10:33 +08:00
Alexander Bias
d4737c2147 MDL-58964 navigation: Reindex array when element is removed 2020-03-23 21:33:47 +01:00
David Mudrák
754f641f85 MDL-52319 upgrade: Better report the environment checks in CLI scripts
Before we did not display the source of the environment check failure
(whether it was a core check or a plugin) and there was a missing space
before the "Error" status.
2020-03-23 11:23:43 +01:00
Sara Arjona
fb56f5190c MDL-68116 atto_h5p: deprecate unused strings 2020-03-20 10:07:34 +01:00
Sara Arjona
186a0361a3 MDL-68116 atto_h5p: simplify fields to add H5P content
The embed section has been removed in order to simplify this screen.
It was added to make easier include content coming from h5p.org but,
as soon users won't be able to use it, it makes no sense.
Users will still be able to use the "HTML" button to paste the
embed code.
2020-03-20 10:07:34 +01:00
Farhan Karmali
caf5ebb582 MDL-67024 Lib: Check if user->mnethostid is set before using it 2020-03-20 11:59:04 +05:30
Peter Dias
dacdc4a467 MDL-60817 file: Populate header only if exists 2020-03-19 15:29:36 +00:00
Adrian Greeve
aab8d9a1c0 Merge branch 'MDL-68081-master' of https://github.com/kritisingh1/moodle 2020-03-19 11:26:25 +08:00
Adrian Greeve
9b57e08e8b Merge branch 'MDL-67924' of https://github.com/Chocolate-lightning/moodle 2020-03-19 09:41:30 +08:00
Jun Pataleta
b703435b2e Merge branch 'MDL-68108-master' of git://github.com/crazyserver/moodle 2020-03-18 23:01:08 +08:00
Víctor Déniz Falcón
fa3ee722b5 Merge branch 'MDL-60817-master-4' of git://github.com/mihailges/moodle 2020-03-18 14:26:30 +00:00
Pau Ferrer Ocaña
e6faed9bf0 MDL-68108 formslib: Add element password inline template 2020-03-18 08:45:04 +01:00
Tim Hunt
4b03530ca8 MDL-68191 CSS minification: apply upstream performance/accuracy fix
There was a bug with the code to strip comments.
https://github.com/matthiasmullie/minify/issues/317

Applying the fix as a Moodle-specific change for now, because the
effect is significant.
2020-03-17 23:26:14 +00:00
David Mudrák
2d60593892 MDL-68183 auth: Fix the performance of get_complete_user_data search
When searching for the user by a case-insensitive field (email address
is the only one supported now), the performance may be very poor as the
DB cannot use the index due to the LOWER() operation and the full
sequential scan of all the user records is performed. On some DBs such
as MySQL, this can be significantly improved by pre-filtering the users
with accent-insensitive search.

So we first perform accent-insensitive search for potential candidates
in a subselect, which can use the index. Only then we perform the
additional accent-sensitive search on this limited set or records.
2020-03-17 14:52:32 +01:00
David Mudrák
3621b497d2 MDL-68183 auth: Fix the performance of signup_validate_data search query
When searching for other users with the same email address, we perform
the case-insensitive and accent-sensitive search. That may be expensive
as some DBs such as MySQL cannot use the index in that case. Instead,
sequential scan of all the user records is performed and the comparison
uses the LOWER function to filter the matching records. This leads to
significant performance heavy queries which in turn represent a surface
for DoS attacks.

For that reason, we first perform accent-insensitive search for
potential candidates in a subselect, which can use the index. Only then
we perform the additional accent-sensitive search on this limited set or
records.
2020-03-17 14:52:32 +01:00
Sara Arjona
9d95fdf23f Merge branch 'MDL-67707-master' of git://github.com/ferranrecio/moodle 2020-03-17 09:03:12 +01:00
Adrian Greeve
cc00258669 Merge branch 'MDL-67970-master' of git://github.com/rezaies/moodle 2020-03-17 15:23:49 +08:00
Shamim Rezaie
f064e11579 MDL-67970 course: More informative aria-label for 'more help' 2020-03-17 18:19:20 +11:00
Shamim Rezaie
604df144d2 MDL-67970 output: use fieldset in core/chooser instead of label 2020-03-17 18:16:25 +11:00
Shamim Rezaie
0499a8c24f MDL-67970 core: remove unnecessary roles
- The navigation role is unnecessary for element nav
- The textbox role is unnecessary for element textarea
2020-03-17 18:16:25 +11:00
Shamim Rezaie
b48b4d2244 MDL-67970 output: fixed duplicate id attribute
action_menu::export_for_template generates the id attributes and send it
to core/action_menu_trigger template as part of the attributes variable.
2020-03-17 18:16:25 +11:00
Shamim Rezaie
668df7663f MDL-67970 search: fixed stray end tag (input) 2020-03-17 18:16:25 +11:00
Adrian Greeve
082153573c Merge branch 'MDL-67981' of https://github.com/timhunt/moodle 2020-03-17 11:30:33 +08:00
Ferran Recio
252e112376 MDL-67707 mod_h5pactivity: add plugin to standard list 2020-03-16 17:52:08 +01:00
Ferran Recio
40cef8afe7 MDL-67707 core_h5p: move shared h5p files to core fixtures 2020-03-16 17:52:08 +01:00
Simey Lameze
88ba207d2e MDL-67913 core_table: introduce dynamic table interface 2020-03-16 11:44:31 +08:00
Andrew Nicols
44effcb419 MDL-67913 core_table: Add filter classes 2020-03-16 11:44:31 +08:00
Andrew Nicols
1142e1bc83 MDL-67913 core: Add new core_table component path 2020-03-16 11:44:31 +08:00
Mihail Geshoski
17ddce9676 MDL-60817 core_repository: Show a warning if file extension is modified 2020-03-13 13:17:44 +08:00
Mathew May
ddd387ef68 MDL-67924 core: Now show the editing button everywhere 2020-03-13 08:50:14 +08:00
Tim Hunt
f2393804bf MDL-67934 questions: give a sensible default idnumber when duplicating 2020-03-12 18:07:11 +00:00
Eloy Lafuente (stronk7)
41f191b341 Merge branch 'MDL-68125-regression' of https://github.com/brendanheywood/moodle 2020-03-12 01:19:23 +01:00
Eloy Lafuente (stronk7)
0b698cb00b Merge branch 'MDL-67752-master-userstats' of git://github.com/mudrd8mz/moodle 2020-03-12 00:23:30 +01:00
Brendan Heywood
17b04bdb25 MDL-68125 core: Fixed $CFG->reverseproxyignore install regression 2020-03-12 09:36:17 +11:00
kritisingh1
02c350947f MDL-68081 Groups: Fixes string error in member removal function 2020-03-11 17:28:54 +05:30
Andrew Nicols
63e821fb41 Merge branch 'MDL-67063-master' of git://github.com/sarjona/moodle 2020-03-11 16:06:00 +08:00
Sara Arjona
08fda3e0f8 MDL-67063 h5p: new h5plib plugintype for supporting multi coreAPI
A new plugintype has been created for having more than one installed
third-party H5P libraries. Existing libraries have been moved from
lib/h5p to the new h5plib_v124 plugin.
2020-03-11 08:46:16 +01:00
Andrew Nicols
e55d14e8d2 Merge branch 'MDL-68146' of https://github.com/stronk7/moodle 2020-03-11 11:33:25 +08:00