10275 Commits

Author SHA1 Message Date
Huong Nguyen
ac3ae1b678
Merge branch 'MDL-82224-main' of https://github.com/andrewnicols/moodle 2024-06-20 10:59:56 +07:00
Sara Arjona
f230cbb253
Merge branch 'MDL-81534' of https://github.com/paulholden/moodle 2024-06-19 16:49:49 +02:00
Andrew Nicols
bbdf580177
MDL-82224 core_admin: Remove manual check for json
JSON can no longer be disabled.
2024-06-18 15:55:03 +08:00
Eloy Lafuente (stronk7)
674497a12c
MDL-81523 phpunit: Add all missing setUp/tearDown parent calls
All setUp(), tearDown(), setUpBeforeClass() and tearDownAfterClass()
must, always, call to parent, to ensure that everything is properly
set and cleaned.

While in a lot of situations this is not needed (parents may not
have anything to run), with PHPUnit >= 10 this can become more
important because we are going to move the reset code from current
placement @ runBare() to setUp()/tearDown().

Note that all the changes performed in this commit have been detected
and fixed by moodle-cs (ParentSetUpTearDownSniffTest).
2024-06-14 16:04:57 +02:00
Huong Nguyen
8de80c1b59
Merge branch 'MDL-82162-main' of https://github.com/sarjona/moodle 2024-06-13 09:13:48 +07:00
Sara Arjona
4e881c2595
Merge branch 'MDL-79496-main' of https://github.com/roland04/moodle 2024-06-12 13:12:53 +02:00
Mikel Martín
2d37fadca4 MDL-79496 webservice: Fix webservice behat tests
- Move all webservice related behat tests to the correct namespace.
- Add missing @core_webservice tags
- Fix behat scenarios after systemreport conversion.
2024-06-12 10:01:53 +02:00
Mikel Martín
2c830cb233 MDL-79496 webservice: Convert manage tokens to a system report
- Add new token entity
- Add new service entity
- Replace tokens table with a system report
2024-06-12 10:01:47 +02:00
Huong Nguyen
bb267a11ad
Merge branch 'MDL-80967-main' of https://github.com/StudiUM/moodle 2024-06-12 14:45:40 +07:00
Huong Nguyen
96d29ef71b
Merge branch 'MDL-81522' of https://github.com/stronk7/moodle 2024-06-12 08:46:31 +07:00
Sara Arjona
215a887629
MDL-82162 tool: Switch to admin when executing runtestscenario by CLI
When the runtestscenario is executed via CLI, generators requiring a valid
$USER will fail.
This patch switches to the admin user, consistent with the approach used
in other simlar CLI scripts.
2024-06-11 13:25:44 +02:00
Eloy Lafuente (stronk7)
4f7631113c
MDL-81522 phpunit: Add missing void return type to all tests #2
This commit includes more changes, all them also adding the :void
return type to unit tests missing them.

The difference is that all these changes, while also detected
perfectly by the moodle.PHPUnit.TestReturnType sniff, were not
auto-fixed (like the previous commit ones), because all them
do include some "return" statement and, for safety, we don't
fix them.

All the cases have been visually inspected and confirmed that
the existing "return" statements always belong to anon
functions within the test body and not the test own return statement.
2024-06-11 11:55:08 +02:00
Eloy Lafuente (stronk7)
01148a0816
MDL-81522 phpunit: Add missing void return type to all tests
While this change is not 100% required now, it's good habit
and we are checking for it since Moodle 4.4.

All the changes in this commit have been applied automatically
using the moodle.PHPUnit.TestReturnType sniff and are, exclusively
adding the ": void" return types when missing.
2024-06-11 11:55:07 +02:00
Huong Nguyen
a8468e727d
MDL-68540 tool_usertours: Remove hideif workaround
We don't need to use the group element to use hideif
for text editor element anymore
2024-06-11 15:31:32 +07:00
Sara Arjona
95dfd66a8d
Merge branch 'MDL-81949' of https://github.com/paulholden/moodle 2024-06-10 16:46:32 +02:00
Sara Arjona
e18aefa69e
Merge branch 'MDL-81676-main' of https://github.com/aanabit/moodle 2024-06-10 16:07:28 +02:00
Amaia Anabitarte
267a474154 MDL-81676 core_course: Rename data-sectionid to data-sectionnum
Activity chooser is saving section number in a data attribute called
data-sectionid. We should use data-sectionnum instead to make it easier
to understand.
2024-06-10 15:42:09 +02:00
Andrew Nicols
60d8671224
MDL-81919 core: Prioritise autoloader in install 2024-06-10 14:20:26 +08:00
Paul Holden
da04fc522a
MDL-81949 tool_replace: prompt user for unrecognised CLI parameters. 2024-06-07 11:40:57 +01:00
meirzamoodle
db2f97a6f4
MDL-81890 tool_moodlenet: Fix sesskey checks 2024-06-06 22:02:35 +08:00
Jun Pataleta
e5d52aa315
Merge branch 'MDL-81982-main' of https://github.com/junpataleta/moodle 2024-06-05 10:30:44 +08:00
Helen Foster
7b8da78e01
MDL-81982 lang: Import fixed English strings (en_fix) 2024-06-05 10:25:28 +08:00
Juan Leyva
36e0395bb9
MDL-80959 tool_mobile: Use different user keys for QR and auto login 2024-06-04 10:32:48 +08:00
Paul Holden
dd55e32618
MDL-81534 tool_generator: standardize user creation language string. 2024-06-03 09:43:09 +01:00
Huong Nguyen
a74583cbf0
MDL-80831 core: Add missing classname for privacy url 2024-05-30 17:13:59 +07:00
Jun Pataleta
14eac824ed
Merge branch 'MDL-80640_upgrade-guzzlehttp' of https://github.com/ziegenberg/moodle 2024-05-30 12:00:28 +08:00
Huong Nguyen
47216b5db5
Merge branch 'MDL-80973-master' of https://github.com/jleyva/moodle 2024-05-30 10:37:42 +07:00
Sara Arjona
9a72323f63
Merge branch 'MDL-81983' of https://github.com/lostrogit/moodle 2024-05-29 14:07:25 +02: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
8639237c62
Merge branch 'MDL-81822' of https://github.com/paulholden/moodle 2024-05-28 14:05:01 +08:00
Andrew Nicols
d74740e3a1
MDL-81897 tool_mobile: Coding style fix 2024-05-28 11:40:46 +08:00
Andrew Nicols
6aa05bb847
Merge branch 'MDL-81897-master' of https://github.com/jleyva/moodle 2024-05-28 11:27:35 +08:00
Andrew Nicols
7fc931cdd8
Merge branch 'MDL-81698' of https://github.com/stronk7/moodle 2024-05-28 10:10:39 +08:00
Andrew Nicols
fe3f6350d9
Merge branch 'MDL-78942' of https://github.com/paulholden/moodle 2024-05-28 09:00:35 +08:00
Juan Leyva
0e966da5e6 MDL-80973 tool_policy: Fix edge case 2024-05-27 17:19:53 +02: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
Huong Nguyen
48bc966a59
Merge branch 'MDL-81914-main' of https://github.com/andrewnicols/moodle 2024-05-23 11:01:38 +07:00
Carlos Castillo
8c4c52bc31 MDL-81983 admin: Remove double capability check 2024-05-21 12:16:37 +02:00
Huong Nguyen
bd9631bda5
Merge branch 'MDL-81125-main-alt' of https://github.com/andrewnicols/moodle 2024-05-21 15:33:09 +07:00
Shamim Rezaie
bf85928261 Merge branch 'MDL-80599-main-2' of https://github.com/ilyatregubov/moodle 2024-05-21 14:22:45 +10:00
Paul Holden
f1bc57e220
MDL-81822 tool_licensemanager: slightly relax license shortname type.
The "*-4.0" license versions could not be managed currently.
2024-05-20 17:44:42 +01:00
Andrew Nicols
0964cd5b69
MDL-81125 core: Update upgrade.txt files to document new upgrade notes 2024-05-20 22:26:45 +08:00
Huong Nguyen
adde5efaf5
Merge branch 'MDL-81929' of https://github.com/paulholden/moodle 2024-05-20 09:19:55 +07:00
Daniel Ziegenberg
4098184c77
MDL-80640 lib: Update Guzzle library
- GuzzleHttp/Guzzle 7.8.1
- GuzzleHttp/Promises 2.0.2
- GuzzleHttp/PSR7 2.6.2
- Guzzle cache middleware 5.1.0

This brings PHP 8.3 support for Guzzle.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-05-17 14:26:37 +02:00
Ilya Tregubov
6be4f78b92 MDL-80599 enrol_guest: Support password update in csv course upload 2024-05-17 11:00:56 +08:00
Ilya Tregubov
a45b5583a5 MDL-80599 enrol_self: Support password update in csv course upload 2024-05-17 11:00:55 +08:00
Paul Holden
72beaf65d8
MDL-81929 user: reset the selected bulk action when nothing selected.
In the case of bulk user actions that are implemented via Javascript,
we should ensure that once they are complete the selected action is
reset to its default state of "Choose..." so that it can be selected
again.
2024-05-16 12:57:07 +01:00
Andrew Nicols
b40fad605b
MDL-81914 core_competency: Stop using a deprecated class 2024-05-15 23:50:16 +08:00
Juan Leyva
d963e2ed0e MDL-81897 tool_mobile: Force partitioned cookies on inapp browser 2024-05-14 13:43:29 +02:00