Commit graph

3852 commits

Author SHA1 Message Date
Andrew Nicols
2e05b9111b
MDL-81894 core: system_clock should use the server timezone 2024-06-06 00:17:10 +08:00
Andrew Nicols
c14253b2eb
Merge branch 'MDL-80831-main' of https://github.com/junpataleta/moodle 2024-05-29 14:26:53 +08:00
Jun Pataleta
89c6376fcc
MDL-80831 behat: Re-enable target-size rule for accessibility tests 2024-05-29 10:39:17 +08:00
meirzamoodle
ba8cb7874f MDL-81794 core: Fix the TLS issue on the Redis
The fix covers two places:
- The Redis session.
- The Redis cache store.

The PHP Redis has the option to establish the connection using TLS/SSL instead of using the "tls://" prefix.
This is done to ensure consistency with the Redis cluster connection,
as the code for both single and cluster connections is located in one place.
2024-05-29 09:14:27 +07:00
Andrew Nicols
9745580bf4
Merge branch 'MDL-81282' of https://github.com/paulholden/moodle 2024-05-29 09:45:00 +08:00
Huong Nguyen
175e48bc08
Merge branch 'MDL-54105-master-default_grade_on_mod_assign' of https://github.com/praxisdigital/moodle 2024-05-28 15:21:39 +07:00
Frederik Milling Pytlick
cf7e43666b MDL-54105 mod_assign: Added default gradetype and gradescale
Added 2 new settings to mod_assign and made moodle core look for them to set the default grade values.
2024-05-28 09:10:20 +02:00
Andrew Nicols
7fc931cdd8
Merge branch 'MDL-81698' of https://github.com/stronk7/moodle 2024-05-28 10:10:39 +08:00
Eloy Lafuente (stronk7)
018e6e1fc8
MDL-81698 phpunit: Apply various fixes towards 1by1 execution
The changes here are heterogeneous:
- Include stuff that is not available (other test has included it).
  Sometimes local to a unit test, others in setupBeforeClass() or
  globally, ... depends on every case.
- Rename some tests (namespaces, test name, ...) towards getting it
  running.
- Amend small bits here and there.

Important note: I've left any "cosmetic" warning out from the
changes, only a few errors (like long array syntax) have been fixed.
2024-05-25 17:19:44 +02:00
Eloy Lafuente (stronk7)
6fe0e66d06
MDL-81698 phpunit: Uncomment some tests and make them skipped
There are a few tests in core that are commented since the
beginning. That's not useful at all, so with this commit we
are un-commenting them instead.

Note that this is an initial step to have them back with skipped
outcome. Later in this issue we'll decide about to keep them or
completely remove them (each test can have a different outcome).
2024-05-25 17:19:43 +02:00
Paul Holden
c9d2e72943
MDL-81282 dml: replace occurrences of large integers with new constant.
Where calling code was previously using either the 32-bit limit, or a
value equal to SQL_INT_MAX inside a database read/write, instead use
our new constant.
2024-05-24 22:19:54 +01:00
Anupama Sarjoshi
f0168354b6 MDL-81915 admin: Fix test_admin_output_new_settings_by_page unit test 2024-05-24 11:15:38 +01:00
Marina Glancy
8f2d505e38 MDL-80907 behat: be more precise in selecting table rows 2024-05-07 19:27:07 +01:00
Paul Holden
be7802fa88
MDL-72353 report: final removal of deprecated report selection method. 2024-05-06 20:22:08 +01:00
Andrew Nicols
cde433c26a
MDL-81647 core: Replace partial with a more lightweight version 2024-04-29 09:54:21 +08:00
Sara Arjona
5e8f48a53f
Merge branch 'MDL-81209-main' of https://github.com/andrewnicols/moodle 2024-04-23 15:35:12 +02:00
Andrew Nicols
6db4285eaa
MDL-81525 core_user: Move after_complete_login to correct NS 2024-04-15 13:05:10 +08:00
Jun Pataleta
3856addfdd
Merge branch 'MDL-67667-main' of https://github.com/andrewnicols/moodle 2024-04-12 12:41:39 +08:00
Andrew Nicols
6f1df841f7
MDL-67667 core: Deprecate and removal task blocking
There are inherent issues with task blocking which mean that it has
never worked properly. It is also very buggy and can lead to massive
performance issues with task processing.

It is almost impossible to deprecate this in a staged fashion because
various APIs use the methods and it is not possible to determine which
are API uses and which are other valid uses.

In reality there has been little-to-no uptake on the use of this feature
and it should just be removed.
2024-04-12 12:34:20 +08:00
Andrew Nicols
8acda4e048
Merge branch 'MDL-70829-main' of https://github.com/junpataleta/moodle 2024-04-12 11:58:32 +08:00
Huong Nguyen
b5cf1ff886
Merge branch 'MDL-79174_master' of https://github.com/marxjohnson/moodle 2024-04-12 10:54:54 +07:00
Jun Pataleta
5289581d06
MDL-70829 core: Remove presentation role for decorative images
* An image with non-empty alt text should not have a presentation role.
* An empty alt attribute is sufficient for decorative images. No need to
add a presentation role for them.
* Additionally, if there is already text that is present for an image,
there's no need to add an alt text with the same text. Such images are
decorative and should just have an empty alt text.
2024-04-12 10:42:09 +08:00
Huong Nguyen
eea6ff96e0
Merge branch 'MDL-81256' of https://github.com/marinaglancy/moodle 2024-04-12 08:58:03 +07:00
Shamim Rezaie
363c593cbb Merge branch 'MDL-81306-main' of https://github.com/andrewnicols/moodle 2024-04-12 11:45:25 +10:00
Huong Nguyen
64780d8f4c
Merge branch 'MDL-81316-main' of https://github.com/andrewnicols/moodle 2024-04-12 08:36:29 +07:00
Shamim Rezaie
3b1874aba7 Merge branch 'MDL-81482' of https://github.com/AnupamaSarjoshi/moodle 2024-04-12 09:30:38 +10:00
Shamim Rezaie
54561aacec Merge branch 'MDL-80203-main' of https://github.com/sarjona/moodle 2024-04-12 09:23:05 +10:00
Ilya Tregubov
c9eab29d37 Merge branch 'MDL-81480-main' of https://github.com/meirzamoodle/moodle 2024-04-11 15:48:07 +08:00
Andrew Nicols
1ec7174072
MDL-80985 core: Whitespace fixes 2024-04-11 12:49:27 +08:00
Andrew Nicols
5c16854483
Merge branch 'MDL-80985-add-purge-course-caches-option-main' of https://github.com/jwcatau/moodle 2024-04-11 10:41:13 +08:00
meirzamoodle
c9cb89323c MDL-81480 core: Sets user-level session storage functions
Also added @runInSeparateProcess on each session Redis cluster test to let the test run
in a separate process to avoid the error "the headers are not already sent" by PHPUnit.
2024-04-10 17:27:20 +07:00
Andrew Nicols
dae36f6cfa
MDL-81063 core: Add helper to get component name from classname 2024-04-10 12:41:31 +08:00
Andrew Nicols
29fc61c2a5
MDL-81063 core: Add option to get core in list of components 2024-04-10 12:41:31 +08:00
Anupama Sarjoshi
6f0fde1fe3 MDL-81482 Questions: Fix questionlib_test PHPUnit tests 2024-04-09 16:43:07 +01:00
Sara Arjona
e188a28add
MDL-80203 courseformat: Set action menu for delegated sections
Co-authored by: Ferran Recio <ferran@moodle.com>
2024-04-09 15:28:16 +02:00
Sara Arjona
099ceb42a0
Merge branch 'MDL-81456-main' of https://github.com/andrewnicols/moodle 2024-04-08 16:11:26 +02:00
Andrew Nicols
dc0cf1f273
MDL-81209 core: Unit test should not care about plugin details 2024-04-08 20:54:48 +08:00
Marina Glancy
33c528aaec MDL-81256 lib: fix rounding of thumbnail image size 2024-04-08 10:01:04 +01:00
James Williams
5e05ad570f MDL-80985 core: Add --courses argument to purge_caches.php 2024-04-08 18:34:13 +10:00
Andrew Nicols
4a1752781f
MDL-81456 core: Coding style fixups 2024-04-08 09:36:22 +08:00
Andrew Nicols
3cc3511fa2
MDL-81456 core: Remove superflous coverage information 2024-04-08 09:36:22 +08:00
Andrew Nicols
71e8387a96
MDL-81456 core: Move hook fixtures to more appropriate location 2024-04-08 09:36:22 +08:00
Andrew Nicols
d7e1f2cef7
MDL-81456 core: Run tests modifying core_component in a separate process 2024-04-08 09:36:21 +08:00
Andrew Nicols
fa2e11105a
MDL-81456 core: Stop injecting test data into real hook manager 2024-04-08 09:36:21 +08:00
Juan Leyva
8ed83886f3 MDL-81405 tool_mobile: Set Partitioned cookie for the mobile app 2024-04-06 12:21:00 +02:00
Juan Leyva
e09930bab6 MDL-81405 session: New core cookie helper utility class 2024-04-06 12:20:59 +02:00
Sara Arjona
5949ac50f6
Merge branch 'MDL-81084-main' of https://github.com/andrewnicols/moodle 2024-04-04 17:55:48 +02:00
Sara Arjona
0447aa9144
Merge branch 'MDL-4188-main-2' of https://github.com/HuongNV13/moodle 2024-04-04 17:40:57 +02:00
Huong Nguyen
6d196e73bb
Merge branch 'MDL-81386-main' of https://github.com/sarjona/moodle 2024-04-04 21:56:11 +07:00
Huong Nguyen
66e8bf76f9
MDL-4188 core: Modify PHPUnit to use the new sink method 2024-04-04 20:13:47 +07:00