109339 Commits

Author SHA1 Message Date
Andrew Nicols
63a1ec81c4
MDL-79003 js: Standard package bump - grunt 2024-01-30 14:07:08 +08:00
Andrew Nicols
150fc0837a
MDL-79003 js: Standard package bump - watchman 2024-01-30 14:07:08 +08:00
Andrew Nicols
72958879c6
MDL-79003 js: Standard package bump - ajv 2024-01-30 14:07:08 +08:00
Andrew Nicols
d8d560b7fe
MDL-79003 js: Use our own jsdoc wrapper
grunt-jsdoc is abandoned and only works with an older version of jsdoc.

This is a very simple wrapper around jsdoc itself.

This commit also includes a fix for broken docs.
2024-01-30 14:07:06 +08:00
Andrew Nicols
917dd49db2
MDL-79003 core: Bump eslint 2024-01-30 14:04:40 +08:00
Ruslan Kabalin
80691cf5a3
MDL-79003 eslint: Enable 'reportUnusedDisableDirectives' eslint setting
This commit is a backport of MDL-74301 which should have been backported
at the time.

This will warn on unused /* eslint-disable */ statements.
2024-01-30 14:04:38 +08:00
Ruslan Kabalin
e20720ce0e
MDL-79003 eslint: Remove rules included in eslint:recommended
This commit is a backport of MDL-74301 which should have been backported
at the time.

All rules included in "eslint:recommended" set containing matching
values are removed from the list. Recommended set is defined in
node_modules/eslint/conf/eslint-recommended.js
2024-01-30 14:03:10 +08:00
Ruslan Kabalin
f976349b95
MDL-79003 eslint: Remove deprecated rules.
This commit is a backport of MDL-74301 which should have been backported
at the time.

To identify deprecated rules, temporary install sarbbottam/eslint-find-rules, then run
`npx eslint-find-rules -d .eslintrc`, it will return a list of rules
defined in .eslintrc that were deprecated.
2024-01-30 14:03:09 +08:00
Ruslan Kabalin
312a166f1e
MDL-79003 eslint: Refactor jsdoc rules.
This commit is a backport of MDL-74301 which should have been backported
at the time.

Adding 'plugin:promise/recommended' results in 5k+ jsdoc warnings most
of which includes missing return and naming preferences (e.g. 'returns'
over 'return' or 'string' over 'String'). This needs to be audited and
addressed seprately.
2024-01-30 14:03:09 +08:00
Ruslan Kabalin
f16ca8fa7a
MDL-79003 eslint: Use 'plugin:promise/recommended'
This commit is a backport of MDL-74301 which should have been backported
at the time.

This enables recommended rules and brings back related rules. Without
reducing level to warn for some of them, this gives numerous (about 88) issues mainly
catch-or-return. Recommended set is defined in
node_modules/eslint-plugin-promise/index.js
2024-01-30 14:03:09 +08:00
Ruslan Kabalin
846a8b6568
MDL-79003 eslint: Address issues reported by eslint
This commit is a backport of MDL-74301 which should have been backported
at the time.
2024-01-30 14:03:05 +08:00
Ruslan Kabalin
692d3090fa
MDL-79003 eslint: Change configuration and use 'eslint:recommended'
This commit is a backport of MDL-74301 which should have been backported
at the time.
2024-01-30 13:33:40 +08:00
Ruslan Kabalin
8092eb95c4
MDL-79003 eslint: Upgrade eslint and babel
This commit is a backport of MDL-74301 which should have been backported
at the time.

This patch includes changes:
* Upgrade "@babel/core" to latest point release
* Remove plugins already included into current "@babel/preset-env":
  - "@babel/plugin-proposal-class-properties"
  - "@babel/plugin-proposal-json-strings"
  - "@babel/plugin-syntax-dynamic-import"
  - "@babel/plugin-syntax-import-meta"
* Upgrade "eslint" to latest version
* Replace "eslint-plugin-babel" (depreacted in 2019) with "@babel/eslint-parser" and "@babel/eslint-plugin"
2024-01-30 13:33:40 +08:00
Andrew Nicols
2b864ceec3
MDL-79003 core: Bump NodeJS to lts/iron (NodeJS 20) 2024-01-30 13:33:40 +08:00
Sara Arjona
560f4d895b
weekly release 4.1.8+ 2024-01-25 16:48:39 +01:00
Jun Pataleta
95c3017da4
Merge branch 'MDL-80656-401' of https://github.com/lameze/moodle into MOODLE_401_STABLE 2024-01-25 12:13:47 +08:00
Ilya Tregubov
8fffc08ee8 Merge branch 'MDL-79159-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2024-01-25 09:36:26 +08:00
Ilya Tregubov
364230d6f8 Merge branch 'MDL-80653-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2024-01-25 09:26:49 +08:00
Paul Holden
45f674e8cb
MDL-80653 h5p: handle content type creation errors in test.
See also same in c7d08f85.
2024-01-24 08:58:30 +00:00
Sara Arjona
4ba166cf80
Merge branch 'MDL-79940-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2024-01-24 09:22:48 +01:00
Angelia Dela Cruz
3a779663aa MDL-79159 mod_lesson: Behat coverage for lesson question max attempts 2024-01-24 16:18:46 +08:00
Simey Lameze
ca7b24f6d0 MDL-80656 behat: remove unnecessary activity duplication steps 2024-01-24 11:14:42 +08:00
Angelia Dela Cruz
35a2a34a7d MDL-79940 mod_workshop: Behat to confirm review button for reviewers 2024-01-24 09:10:41 +08:00
Sara Arjona
38c4d51947
Merge branch 'MDL-80339-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2024-01-23 07:48:37 +01:00
Angelia Dela Cruz
a86228f547 MDL-80339 mod_lesson: Behat to confirm grade visibility in lesson 2024-01-23 10:13:27 +08:00
Jun Pataleta
b30033c6c0
Merge branch 'MDL-79029-401' of https://github.com/ferranrecio/moodle into MOODLE_401_STABLE 2024-01-23 09:21:26 +08:00
Ferran Recio
5661849a02 MDL-79029 behat: optimize behat tests
Replace some add activity to section steps to the new
add activity to course section so they are faster and do
not require javascript.
2024-01-22 11:23:44 +01:00
Ferran Recio
66e8ce9976 MDL-79029 behat: new add activity steps 2024-01-22 11:23:44 +01:00
Jun Pataleta
cf92eaeb0b
Merge branch 'MDL-80377-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2024-01-22 16:32:15 +08:00
Angelia Dela Cruz
f7f40e54e6 MDL-80377 block: Behat confirming folder file in recent activity block 2024-01-19 14:31:30 +08:00
Huong Nguyen
627177855a weekly release 4.1.8+ 2024-01-19 11:24:39 +07:00
Andrew Nicols
0d0aa11e19
Merge branch 'MDL-80591_401' of https://github.com/stronk7/moodle into MOODLE_401_STABLE 2024-01-18 10:57:43 +08:00
Sara Arjona
eb0439b5da
Merge branch 'MDL-80266-401' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE 2024-01-16 07:20:21 +01:00
Andrew Nicols
37101f0698
MDL-80266 mod_forum: Reset subscription caches between behat tests 2024-01-16 13:34:46 +08:00
Eloy Lafuente (stronk7)
4b8a001bb0
MDL-80591 phpunit: delegate run to phpunit binary
Instead of manually including composer's auto-loading
stuff and then run PHPUnit\TextUI\Command::main(), now
we are using the PHPUnit "binary".

That way behaviour should be 100% the same than
running vendor/bin/phpunit (recommended instead of util.php --run).

Also, note that, for other util.php commands, we still need
composer's auto-loading to happen, so we have moved it immediately
after the --run command.

Finally, a few more file_exists() conditions have been added
to ensure that PHPUnit is properly installed. Redundant but...
2024-01-13 18:32:43 +01:00
Ilya Tregubov
a9cf9d5519 weekly release 4.1.8+ 2024-01-12 09:11:53 +08:00
Ilya Tregubov
53275e5b8f Merge branch 'install_401_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_401_STABLE 2024-01-12 09:11:48 +08:00
Huong Nguyen
518e5799e4 Merge branch 'MDL-80452-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2024-01-11 10:45:35 +07:00
Huong Nguyen
6a610605f6 Merge branch 'MDL-80229-401' of https://github.com/davewoloszyn/moodle into MOODLE_401_STABLE 2024-01-11 10:36:56 +07:00
Angelia Dela Cruz
e4eb16bd9f MDL-80452 mod_h5pactivity: Behat for H5Pactivity duplication and delete 2024-01-11 11:22:22 +08:00
Huong Nguyen
3e831cc8c5 Merge branch 'MDL-73639-401-fix' of https://github.com/sarjona/moodle into MOODLE_401_STABLE 2024-01-10 14:47:48 +07:00
Sara Arjona
5ecca13a6f
Merge branch 'MDL-80340-401' of https://github.com/lameze/moodle into MOODLE_401_STABLE 2024-01-10 07:35:14 +01:00
Huong Nguyen
278f58dae0 Merge branch 'MDL-80382-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2024-01-10 10:31:13 +07:00
Sara Arjona
73cf6fb65c
MDL-73639 behat: Fix the failure with the Enrol button
The button at the top of the page is hidden a few seconds by the
un-enrolment confirmation dialogue. Instead of waiting a few seconds
or reloading the page, the button at the bottom is clicked instead.
2024-01-09 16:39:38 +01:00
Simey Lameze
6483b5d68f MDL-80340 behat: make query to fetch h5p attempts less strict 2024-01-09 16:16:06 +08:00
Angelia Dela Cruz
6c24b8289f MDL-80382 behat: Replace "Frist" typos in Behat tests to "First" 2024-01-09 11:00:06 +08:00
Huong Nguyen
e2e00a9dd4 Merge branch 'MDL-73639-401' of https://github.com/lameze/moodle into MOODLE_401_STABLE 2024-01-08 16:10:15 +07:00
Simey Lameze
8168155e17 MDL-73639 behat: improvements to the new recover grades test 2024-01-08 13:09:25 +08:00
Angelia Dela Cruz
d6650b63bf MDL-73639 core_grades: Behat to test Recover grades default settings 2024-01-08 13:09:25 +08:00
Ilya Tregubov
174389cc26 Merge branch 'MDL-79937-401_fixlessonmatching' of https://github.com/catalystfd/moodle into MOODLE_401_STABLE 2024-01-08 09:21:02 +08:00