29842 Commits

Author SHA1 Message Date
Ilya Tregubov
41cf7a58f1 MDL-73293 core_task: patch for undefined propety. 2022-06-15 11:31:31 +04:00
Jun Pataleta
86676d6811 Merge branch 'MDL-72184' of https://github.com/paulholden/moodle 2022-06-15 10:27:56 +08:00
Víctor Déniz
5481e7999c Merge branch 'MDL-74449' of https://github.com/stronk7/moodle 2022-06-14 10:03:22 +01:00
Jun Pataleta
586f79f15b Merge branch 'MDL-74597' of https://github.com/paulholden/moodle 2022-06-14 12:55:03 +08:00
Paul Holden
e1fefe2e14 MDL-74597 themes: remove pix icon references from custom menu items.
Support for them was removed in 8c336899, however existing config
remained that would lead to bogus URLs in custom user menu items.
2022-06-13 21:43:28 +01:00
Ilya Tregubov
9932acd6b3 Merge branch 'MDL-73293-master' of https://github.com/cameron1729/moodle 2022-06-13 09:50:13 +04:00
Jake Dallimore
b76dbf7d73 Merge branch 'MDL-74718-master' of https://github.com/sharidas/moodle 2022-06-13 10:53:03 +08:00
Paul Holden
27f9929b52 MDL-72184 dml: implement driver methods for casting to char. 2022-06-12 19:31:34 +01:00
Eloy Lafuente (stronk7)
e0d79c8e71 MDL-74449 gradebook: Protect flatten_dependencies_array() a little bit
It has been detected that the flatten_dependencies_array() was fragile
and leading to wrong results when some incorrect data was passed to it.

This includes:

- Missing elements.
- Null dependencies.
- Non array dependencies.

While the existing behaviour (testing-wise) has been preserved, now the
situations above are better controlled and the function ignores all
those incorrect cases that shouldn't happen ever.

That implies that a good number of notices/warnings/errors aren't
happening anymore. That was impacting both results (when the problems
were  only notices and warnings) and execution (when the problems
were errors).

Covered with tests.
2022-06-10 18:17:53 +02:00
Jun Pataleta
4bcd61f618 MDL-74802 core: Remove tooltip on the notification close button
Reverting the addition of a Boostrap tooltip on the alert notification's
close button. It introduced a bug where the tooltip remains after
dismissing the notification alert. We can manually toggle the state of
the tooltip via JS, but I don't think it's worth the effort. The tooltip
is meant as an added bonus for sighted users to see what the close
button is about.
2022-06-10 13:12:35 +02:00
Andrew Nicols
5aae67880d MDL-73013 filelib: Fix code lint 2022-06-10 13:12:35 +02:00
Andrew Nicols
0b305d9330 MDL-73013 filelib: Address coding style violations 2022-06-10 13:12:35 +02:00
Andrew Nicols
90fb816444 Merge branch 'MDL-73013' of https://github.com/paulholden/moodle 2022-06-10 13:12:35 +02:00
Jake Dallimore
77b8c72bed Merge branch 'MDL-72377' of https://github.com/paulholden/moodle 2022-06-10 13:12:34 +02:00
Víctor Déniz
bff506ef6b Merge branch 'MDL-69970_master' of https://github.com/aya-saad1/moodle 2022-06-10 13:12:11 +02:00
Sara Arjona
c46ab4ef04 Merge branch 'MDL-74095_upgrade-adobb-to-5-22' of https://github.com/ziegenberg/moodle 2022-06-10 13:12:11 +02:00
Sara Arjona
bb5831c623 Merge branch 'MDL-74733-master' of https://github.com/sammarshallou/moodle 2022-06-10 13:12:10 +02:00
Sara Arjona
9acbbe11d1 Merge branch 'MDL-74802-master-2' of https://github.com/junpataleta/moodle 2022-06-10 13:11:52 +02:00
Sara Arjona
ef9368967f Merge branch 'MDL-74577-master' of https://github.com/sharidas/moodle 2022-06-10 13:11:52 +02:00
Ilya Tregubov
bdd9ff353b Merge branch 'MDL-74192' of https://github.com/paulholden/moodle 2022-06-10 13:11:50 +02:00
Sujith Haridasan
3ad2833dd9 MDL-74718 webdav: correct the loop when reading chunks
Adjusted the condition while reading the streams
in chunks. Read till the end to make sure we have got all
the data. Else we might not get all the data to show
in file picker.
2022-06-09 12:02:34 +05:30
Cameron Ball
cd1a7291ea MDL-73293 core_task: Cleanup stale adhoc task metadata 2022-06-09 14:15:37 +08:00
Daniel Ziegenberg
bfe70c09f9
MDL-74095 lib: Upgrade ADODB to 5.22.2
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2022-06-08 18:18:47 +02:00
sam marshall
96e2caeaa2 MDL-74733 core_navigation: Secondary nav in plugins, change namespace
Secondary nav previously had to be in my_plugin\local\views\secondary; this
location continues to work but is deprecated. The new location is
my_plugin\navigation\views\secondary.
2022-06-08 15:40:44 +01:00
Paul Holden
3596fc1fe6 MDL-72377 grade: fix category form hidden/until fields.
Ensure the saved values for the hidden and hidden until fields are
populated when editing a grade category. Fix behaviour on enabling
the hidden until field.

Re-enable tests commented out in eba1d32c.
2022-06-06 15:31:03 +01:00
Paul Holden
67b15496c3 MDL-72377 grade: increase size of category hidden fields.
As well as storing 1/0 to indicate hidden state, they are also used
to store a timestamp indicating hidden until date. Increasing field
size allows these values to be stored without triggering exceptions.
2022-06-06 15:31:02 +01:00
aya.saad
8636718cee MDL-69970 icons: flip help icon direction in RTL languages 2022-06-05 09:18:26 +02:00
Shamim Rezaie
3b72e759ab Merge branch 'MDL-74250-master' of https://github.com/adpe/moodle 2022-06-03 18:42:13 +10:00
Andrew Nicols
fd376582ac Merge branch 'MDL-66453' of https://github.com/dmitriim/moodle 2022-06-02 08:45:03 +08:00
Dmitrii Metelkin
4e353e4812 MDL-66453 uploaduser: Bulk assign roles in course categories 2022-06-02 09:42:17 +10:00
Andrew Nicols
270f466ef5 Merge branch 'MDL-72458' of https://github.com/paulholden/moodle 2022-06-01 23:54:44 +08:00
Sara Arjona
df71afbfe9 Merge branch 'MDL-73727-master' of https://github.com/keevan/moodle 2022-06-01 08:41:36 +02:00
Jun Pataleta
468de2da07 Merge branch 'MDL-73767-master_clever_oauth2' of https://github.com/rnathuji/moodle 2022-06-01 11:43:00 +08:00
Ripal Nathuji
79ae21c23f MDL-73767 oauth2: Add clever oauth2 client 2022-05-31 17:17:20 -05:00
Shamim Rezaie
bd8dbf4c21 Merge branch 'MDL-72723-select-exists-not-count' of https://github.com/keevan/moodle 2022-05-31 12:57:16 +10:00
Jun Pataleta
cebc4c8855 Merge branch 'MDL-73431-master-v2' of https://github.com/dmitriim/moodle 2022-05-30 16:25:10 +08:00
Dmitrii Metelkin
a6cad23b1a MDL-73431 enrol: Introduce a sync interval 2022-05-30 15:58:22 +10:00
Kevin Pham
f984566b15 MDL-73727 core_files: Add subquery to avoid a seq scan on larger sites
- Formatted the query to meet SQL coding styles
- Add index on {files} to prevent performance regression
- Fork the SQL query based on DB family based on support
2022-05-30 13:38:45 +10:00
Nathan Mares
1da1152baa MDL-72723 logs: Add get_events_select_exists to the sql_reader interface
- Updates to log stores and backup helper to improve performance when
  checking if a course has been modified.
- This is a breaking change as it adds a new function on the sql_reader
  interface.

Co-authored-by: Kevin Pham <keevan.pham@gmail.com>
2022-05-30 10:42:47 +10:00
Ilya Tregubov
0460147cb5 Merge branch 'MDL-67648-master' of https://github.com/cameron1729/moodle 2022-05-27 15:41:29 +06:00
Adrian Perez
43847787e0 MDL-74250 core: Improve indicator that link opens in new window 2022-05-27 07:21:54 +02:00
Jun Pataleta
2814436c44 Merge branch 'MDL-71198-master' of https://github.com/junpataleta/moodle 2022-05-26 10:23:27 +08:00
Jun Pataleta
dac4af8e4c Merge branch 'MDL-73183-master' of https://github.com/andrewnicols/moodle 2022-05-26 10:09:46 +08:00
Jun Pataleta
e60e8bc629 Merge branch 'MDL-73423-master' of https://github.com/marinaglancy/moodle 2022-05-26 00:18:35 +08:00
Peter Burnett
3801662e97 MDL-71198 backup: Change times on restore file duplication 2022-05-25 22:18:36 +08:00
Cameron Ball
f284e446b9 MDL-67648 tasks: Add unit tests 2022-05-25 09:38:41 +08:00
Cameron Ball
8154aa2e03 MDL-67648 tasks: Fair-share scheduling with resource management
This patch changes the way adhoc tasks are chosen to run. It now calculates
how many runners each type of adhoc task should be allowed to use. In the
case that not all the runners are utilised, it attempts to infer which
tasks do not take a long time to run, and gives those to the vacant runners.

Thanks to Brendan Heywood for guidance and SQL help.
2022-05-25 09:38:41 +08:00
Jun Pataleta
de177cc564 Merge branch 'MDL-72283_allow-customisation-of-redis-session-handler-errors' of https://github.com/ziegenberg/moodle 2022-05-24 10:13:04 +08:00
Daniel Ziegenberg
01309248d8
MDL-72283 caching: internationalize redis session handler error
The 'unable to obtain session lock'-exception raised by the Redis
session handler is hardcoded in English and not all that useful
to the end user.

This change adds the error message to the lang/error.php and gives
the user further hints why the error might have occured and how it
could be fixed.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2022-05-23 16:42:33 +02:00
Jun Pataleta
8310b2014e MDL-74802 core: Improve the accessibility of alert notifications
* Make the ordering of the message and the close button logical on
  the DOM.
* Hide the times HTML entity
* Add sr-only label on the close button for non-sighted users
* Add tooltip on the close button sighted users
* With all the notification templates being the same except for the
  class, I created a base notification template (core/notification_base)
  that alert notifications just override. This avoids code duplication
  and can make maintenance simpler.
2022-05-23 12:54:55 +08:00