Sara Arjona [Fri, 24 Mar 2023 12:59:44 +0000 (13:59 +0100)]
weekly release 3.9.20+
Mikel Martín [Mon, 20 Mar 2023 12:54:47 +0000 (13:54 +0100)]
MDL-77691 behat: Add step to navigate to profile page directly
Co-authored-by: Simey Lameze <simey@moodle.com>
Ilya Tregubov [Wed, 22 Mar 2023 01:37:21 +0000 (09:37 +0800)]
weekly release 3.9.20+
Meirza [Fri, 16 Dec 2022 13:52:11 +0000 (20:52 +0700)]
MDL-77669 dml: Added extrainfo in the DB options config.
extrainfo is an extra information for the DB driver, e.g. SQL Server,
has additional configuration according to its environment,
which the administrator can specify to alter and override any connection options.
Co-authored-by: LukeCarrier <luke@carrier.im>
This is a backport of MDL-64153.
Eloy Lafuente (stronk7) [Tue, 14 Mar 2023 15:07:54 +0000 (16:07 +0100)]
weekly release 3.9.20+
Simey Lameze [Thu, 9 Mar 2023 02:29:21 +0000 (10:29 +0800)]
MDL-77574 myoverview: wait until next button exists before clicking
Petr Skoda [Sun, 5 Mar 2023 10:12:31 +0000 (11:12 +0100)]
MDL-76680 core: disable $USER->ignoresesskey on next page
Jun Pataleta [Sat, 11 Mar 2023 05:10:32 +0000 (13:10 +0800)]
Moodle release 3.9.20
Jun Pataleta [Fri, 10 Mar 2023 14:10:07 +0000 (22:10 +0800)]
weekly release 3.9.19+
Andrew Nicols [Fri, 10 Mar 2023 06:11:21 +0000 (14:11 +0800)]
MDL-77429 course: Change course date to previous day
When a test runs just after midnight, and the user time zone is not the
same as the server timezone, and the course is created using a generator
(which runs in server time zone) but the UI presented in the user
timezone, the course start time is still in the future.
We need to create the course a day earlier to ensure that the "This
week" indicator is in the correct day.
Angelia Dela Cruz [Tue, 28 Feb 2023 08:54:04 +0000 (16:54 +0800)]
MDL-77429 Behat: Add coverage for changing course format as teacher
Angelia Dela Cruz [Tue, 7 Mar 2023 02:46:51 +0000 (10:46 +0800)]
MDL-77463 Behat: Coverage for assign submission notification to teacher
Andrew Nicols [Thu, 9 Mar 2023 00:17:52 +0000 (08:17 +0800)]
MDL-77559 js: Rebuild all JS with Node 16
Andrew Nicols [Thu, 9 Mar 2023 00:11:38 +0000 (08:11 +0800)]
MDL-77559 js: Revert "MDL-75012 core: Bump NodeJS version requirements"
This reverts commit
f6559c6eafde8aaad324ed38ae11f0f7368db81d.
Andrew Nicols [Thu, 9 Mar 2023 00:11:36 +0000 (08:11 +0800)]
MDL-77559 js: Revert "MDL-75012 js: Bump standard dependencies"
This reverts commit
0872d008575796fd3efbc13de29f3ee028bc1ee3.
Andrew Nicols [Thu, 9 Mar 2023 00:11:25 +0000 (08:11 +0800)]
MDL-77559 js: Revert "MDL-75012 js: Remove grunt-contrib-uglify"
This reverts commit
d6ac705d6325a1d665ff42be547ab12764d50525.
Andrew Nicols [Thu, 9 Mar 2023 00:11:21 +0000 (08:11 +0800)]
MDL-77559 js: Revert "MDL-75012 js: Bump stylelint and components"
This reverts commit
2cfb12db0ec3a8c27d4cbe25d8f0062b5a7a9916.
Andrew Nicols [Thu, 9 Mar 2023 00:11:11 +0000 (08:11 +0800)]
MDL-77559 js: Revert "MDL-75012 js: Update browserslist"
This reverts commit
4f2e19bb73050f139e37b0b0470bde21ed849c8f.
Andrew Nicols [Thu, 9 Mar 2023 00:11:10 +0000 (08:11 +0800)]
MDL-77559 js: Revert "MDL-75012 js: Bump node-sass"
This reverts commit
daa7fe6afa8bce101349da293205116dbd6396fc.
Andrew Nicols [Thu, 9 Mar 2023 00:11:05 +0000 (08:11 +0800)]
MDL-77559 js: Revert "MDL-75012 js: Audit fix"
This reverts commit
e2c7dd3d43fe71735cc69aa3c5b562d9fd4714d8.
Andrew Nicols [Thu, 9 Mar 2023 00:10:49 +0000 (08:10 +0800)]
MDL-77559 js: Revert "MDL-75012 js: Bump shifter to new version"
This reverts commit
3bf5ec446f98be446335e7a9cd537a7a9373cb36.
Andrew Nicols [Thu, 9 Mar 2023 00:10:43 +0000 (08:10 +0800)]
MDL-77559 js: Revert "MDL-75012 js: Put shifter on a diet"
This reverts commit
7d58caa23ab4f9da629504c9231a5c14ad254879.
Andrew Nicols [Thu, 9 Mar 2023 00:10:24 +0000 (08:10 +0800)]
MDL-77559 js: Revert "MDL-75012 js: Remove unused babel-preset-minify"
This reverts commit
8ed6cc973cf5d20e19014a5d1bb0208340acfd1a.
Andrew Nicols [Thu, 9 Mar 2023 00:10:07 +0000 (08:10 +0800)]
MDL-77559 js: Revert "MDL-75012 js: Bump Babel dependencies"
This reverts commit
bf99f67aae4edd23ea72f00ee6a80407c99ba236.
Angelia Dela Cruz [Mon, 27 Feb 2023 09:29:47 +0000 (17:29 +0800)]
MDL-77414 Behat: Coverage for "Require all group members submit" setting
Petr Skoda [Sun, 5 Mar 2023 11:20:25 +0000 (12:20 +0100)]
MDL-77524 filter_algebra: fix error message
Paul Holden [Wed, 7 Sep 2022 17:26:31 +0000 (18:26 +0100)]
MDL-75517 report_participation: filter report by viewable roles only.
Michael Hawkins [Thu, 2 Mar 2023 04:38:43 +0000 (12:38 +0800)]
MDL-77204 mod_wiki: Clean filename in Moodle1 backup
Paul Holden [Fri, 3 Feb 2023 00:20:40 +0000 (00:20 +0000)]
MDL-77046 availability: validate profile field in condition.
Paul Holden [Mon, 9 Jan 2023 23:27:05 +0000 (23:27 +0000)]
MDL-76809 gradereport_history: pre-filter report userids filter.
Ensure current user is able to access each of the provided userids.
Petr Skoda [Sun, 5 Mar 2023 10:59:00 +0000 (11:59 +0100)]
MDL-76645 filter_data: fix link title attribute
Lars Bonczek [Tue, 6 Sep 2022 13:55:11 +0000 (15:55 +0200)]
MDL-75659 core: Don't render component argument twice in mustache pix helper
Angelia Dela Cruz [Wed, 1 Mar 2023 09:35:20 +0000 (17:35 +0800)]
MDL-77446 Behat: Add coverage for changing uploaded file details
Jake Dallimore [Fri, 3 Mar 2023 03:08:50 +0000 (11:08 +0800)]
weekly release 3.9.19+
Angelia Dela Cruz [Tue, 28 Feb 2023 03:21:25 +0000 (11:21 +0800)]
MDL-77428 Behat: Add coverage for forum post word count
Andrew Nicols [Thu, 2 Mar 2023 03:05:54 +0000 (11:05 +0800)]
MDL-77461 behat: Use get_course_id instead of DB fetch
Andrew Nicols [Tue, 28 Feb 2023 02:17:30 +0000 (10:17 +0800)]
MDL-75012 js: Full build of all grunt things
Andrew Nicols [Tue, 28 Feb 2023 02:17:15 +0000 (10:17 +0800)]
MDL-75012 js: Bump Babel dependencies
Please note that whilst some dependencies have higher versions
available, these are not compatible at this time.
Angelia Dela Cruz [Tue, 28 Feb 2023 09:12:48 +0000 (17:12 +0800)]
MDL-77413 Behat: Minor changes to optimise the existing tests
Angelia Dela Cruz [Mon, 27 Feb 2023 05:46:21 +0000 (13:46 +0800)]
MDL-77413 Behat: Add coverage to verify groups can have a picture
Andrew Nicols [Mon, 27 Feb 2023 12:37:22 +0000 (20:37 +0800)]
MDL-75012 js: Remove unused babel-preset-minify
Andrew Nicols [Wed, 22 Feb 2023 07:17:36 +0000 (15:17 +0800)]
MDL-75012 js: Put shifter on a diet
This commit switches to a new custom version of Shifter which sees it
put on a massive diet.
Many of the standard Shifter features are totally unused by Moodle, but
they add dependency spaghetti. Some of those dependencies will start to
cause us issues as they have not been updated for a very long time, are
no longer maintained, and are no longer compatible with anything
resembling a recent version of NodeJS.
Andrew Nicols [Tue, 7 Feb 2023 04:12:23 +0000 (12:12 +0800)]
MDL-75012 js: Bump shifter to new version
This resolves an issue identified in 77083 which identified that GitHub
hashes shouldn't be treated as repeatable.
Whilst GitHub have reverted this change, it's still worth making this
change.
Andrew Nicols [Fri, 3 Feb 2023 13:43:48 +0000 (21:43 +0800)]
MDL-75012 js: Audit fix
Andrew Nicols [Fri, 3 Feb 2023 13:28:41 +0000 (21:28 +0800)]
MDL-75012 js: Bump node-sass
Andrew Nicols [Fri, 3 Feb 2023 05:47:50 +0000 (13:47 +0800)]
MDL-75012 js: Update browserslist
Paul Holden [Mon, 27 Feb 2023 17:21:46 +0000 (17:21 +0000)]
MDL-72727 mod_forum: prevent default favourite toggle click event.
Allow the repository call to the web service method to complete before
re-directing, otherwise the call may not complete and/or races against
the page reload causing random Behat errors.
Eloy Lafuente (stronk7) [Mon, 27 Feb 2023 08:33:08 +0000 (09:33 +0100)]
MDL-77417 behat: behat_error_handler meets deprecation error types
Right now, any E_DEPRECATED, E_USER_DEPRECATED error type leads
to exception in behat runs, because the behat error handled is
not aware of them. See MDL-38041 for the initial implementation.
We don't want that to happen and they must behave like other "low"
error types (notices, warnings...), that will be reported in logs
or output, but won't trigger any exception, so the test can continue.
This commit just adds those 2 "new" error types to the handler,
providing the very same behaviour for them than the rest.
Andrew Nicols [Fri, 3 Feb 2023 03:24:18 +0000 (11:24 +0800)]
MDL-75012 js: Bump stylelint and components
Andrew Nicols [Fri, 3 Feb 2023 02:54:57 +0000 (10:54 +0800)]
MDL-75012 js: Remove grunt-contrib-uglify
We stopped using this when we updated our processes to support ESMs in
MDL-62497. Removal of the dependency was missed at the time.
Andrew Nicols [Fri, 3 Feb 2023 02:27:33 +0000 (10:27 +0800)]
MDL-75012 js: Bump standard dependencies
This change bumps dependencies which have no impact upon the build
process
Andrew Nicols [Fri, 4 Nov 2022 04:35:37 +0000 (12:35 +0800)]
MDL-75012 core: Bump NodeJS version requirements
Jun Pataleta [Fri, 24 Feb 2023 07:43:39 +0000 (15:43 +0800)]
weekly release 3.9.19+
Matt Porritt [Thu, 23 Feb 2023 03:49:36 +0000 (14:49 +1100)]
MDL-77376 Licensing: Update trademark.txt
Update Trademark policy in TRADEMARK.txt to
be in line with advice from the Moodle HQ
legal team
Tim Hunt [Wed, 22 Feb 2023 11:32:07 +0000 (11:32 +0000)]
MDL-76843 questions behat: enhancements requried to test this issue
* New steps to set up certian sorts of broken test data.
* Fix qtype_essay_question::un_summarise_response().
Simey Lameze [Tue, 21 Feb 2023 04:19:40 +0000 (12:19 +0800)]
MDL-77271 behat: verify user licence preference is remembered
Ilya Tregubov [Fri, 17 Feb 2023 01:12:36 +0000 (09:12 +0800)]
weekly release 3.9.19+
Simey Lameze [Thu, 9 Feb 2023 05:43:01 +0000 (13:43 +0800)]
MDL-77189 behat: basic coverage for wikimedia repository
Paul Holden [Fri, 10 Feb 2023 13:47:43 +0000 (13:47 +0000)]
weekly release 3.9.19+
Angelia Dela Cruz [Mon, 8 Aug 2022 07:41:42 +0000 (15:41 +0800)]
MDL-75230 behat: Lesson Behat tests optimised
Replace steps that manually add Lesson instances via the UI and use
Behat generators. This improves the speed of the Behat test runs.
Angelia Dela Cruz [Thu, 2 Feb 2023 06:31:56 +0000 (14:31 +0800)]
MDL-77078 Behat: Coverage for assignment submission statement
Eloy Lafuente (stronk7) [Tue, 10 Jan 2023 17:49:45 +0000 (18:49 +0100)]
MDL-74905 ci: travis and gha, some adjustments
Apply for some of the improvements made for 4.2:
- Use our own moodlehq/mysql-action
- Define the tmpfs size and ensure that binlogs are disabled.
Eloy Lafuente (stronk7) [Mon, 2 Jan 2023 16:00:43 +0000 (17:00 +0100)]
MDL-74905 environment: Apply agreed changes:
- PHP 8.0 required.
- Moodle 3.11.8 required (first minor supporting PHP 8.0 officially).
- MySQL 8.0 required.
- MariaDB 10.6.7 required.
- PostgreSQL 13 required.
- php-sodium extension required.
- 64-bit PHP required.
Eloy Lafuente (stronk7) [Mon, 2 Jan 2023 14:44:10 +0000 (15:44 +0100)]
MDL-74905 environment: 4.2 base information
This is a direct copy of the 4.1 information, to
have all the real changes under control in next commit(s).
Paul Holden [Fri, 3 Feb 2023 10:57:07 +0000 (10:57 +0000)]
MDL-77132 phpunit: fix data provider method names.
Orginally missed in
1d74ef12 when only the notation was updated,
excluding the actual provider method names.
Jun Pataleta [Fri, 3 Feb 2023 07:43:51 +0000 (15:43 +0800)]
weekly release 3.9.19+
Angelia Dela Cruz [Tue, 29 Nov 2022 00:56:09 +0000 (08:56 +0800)]
MDL-76499 behat: Resource Behat tests optimised
Replace steps that manually add resource instances via the UI and use
Behat generators. This improves the speed of the Behat test runs.
Co-authored-by: David Woloszyn <david.woloszyn@moodle.com>
Angelia Dela Cruz [Tue, 27 Sep 2022 01:59:14 +0000 (09:59 +0800)]
MDL-75830 behat: Book behat tests optimised
Replace steps that manually add Book instances via the UI and use
Behat generators. This improves the speed of the Behat test runs.
Additionally, performed Behat cleanup and optimisation to affected
files.
Angelia Dela Cruz [Fri, 7 Oct 2022 05:12:21 +0000 (13:12 +0800)]
MDL-75912 behat: Wiki Behat tests optimised
Behat cleanup and optimisation
Angelia Dela Cruz [Thu, 26 Jan 2023 09:48:27 +0000 (17:48 +0800)]
MDL-76658 Behat: Coverage for course cohort enrolment groups
Co-authored-by: Simey Lameze <simey@moodle.com>
Simey Lameze [Mon, 23 Jan 2023 08:18:34 +0000 (16:18 +0800)]
MDL-76587 behat: make grading page wider to avoid 'out of bounds' fail
This is because on classic theme the navigation block pushes the content
to the right and once behat changes the grades the 'Save changes' button
is no longer visible.
Eloy Lafuente (stronk7) [Wed, 25 Jan 2023 11:24:07 +0000 (12:24 +0100)]
MDL-76675 date: Only test all TZ names with PHPUNIT_LONGTEST enabled
It happens often that some timezone is renamed, split, added to the
IANAs list of timezones (that, for PHP is kept updated by the
php-timezonedb PECL extension).
When the information coming from the extension changes, all the
PHPUnit jobs in the world start failing (that's when CIs update
their PHP images, when devs update their packages, ...).
So, what we are doing here is to move that test that check for
every single string existing to be run only when PHPUNIT_LONGTEST
is enabled. That way only places running all tests will run that
one. And every other run just will skip it.
This corresponds to point 1 & 2 of the issue, lower impact in general
and, still be able to enable the tests to run.
Paul Holden [Wed, 25 Jan 2023 13:39:54 +0000 (13:39 +0000)]
MDL-77040 core: assert types of returned Geoplugin data, not values.
The results we get from these tests are beyond our control, and are
unreliable for use in testing.
See also previous change
215cd2d8 in similar tests.
Paul Holden [Tue, 13 Dec 2022 10:14:45 +0000 (10:14 +0000)]
MDL-76662 tool_log: correct supported reports test assertions.
Sara Arjona [Thu, 26 Jan 2023 08:59:25 +0000 (09:59 +0100)]
weekly release 3.9.19+
Simey Lameze [Wed, 25 Jan 2023 07:11:52 +0000 (15:11 +0800)]
MDL-77036 core_iplookup: update test_ipv4 test expectations
Angelia Dela Cruz [Mon, 16 Jan 2023 09:42:47 +0000 (17:42 +0800)]
MDL-76655 behat: Coverage for workshop grading strategies
Paul Holden [Fri, 20 Jan 2023 17:19:16 +0000 (17:19 +0000)]
MDL-76977 phpunit: ensure unique data provider keys in mustache test.
Ilya Tregubov [Fri, 20 Jan 2023 01:41:53 +0000 (09:41 +0800)]
weekly release 3.9.19+
Paul Holden [Tue, 10 Jan 2023 15:11:36 +0000 (15:11 +0000)]
MDL-76841 tool_mobile: improve potential config issues test.
Avoid certificate checking of the default test site (`example.com`),
and update the assertion so we get clearer failures in the future.
Paul Holden [Tue, 13 Dec 2022 11:22:33 +0000 (11:22 +0000)]
MDL-70070 phpunit: correct data provider method names.
They should not be prefixed `test_` because that's how actual
test methods containing assertions are identified by PHPUnit.
Jun Pataleta [Sat, 14 Jan 2023 06:16:56 +0000 (14:16 +0800)]
Moodle release 3.9.19
Simey Lameze [Thu, 12 Jan 2023 09:12:18 +0000 (17:12 +0800)]
MDL-76870 question: change assertion to assertEqualsCanonicalizing
By using that assertion the arrays will be sorted before comparison
preventing any Oracle sorting related failures.
Credits for the solution go to Tim Hunt!
Angelia Dela Cruz [Fri, 6 Jan 2023 06:38:38 +0000 (14:38 +0800)]
MDL-76639 behat: Add Behat test coverage for quiz with limited attempts
Jun Pataleta [Fri, 13 Jan 2023 02:52:29 +0000 (10:52 +0800)]
weekly release 3.9.18+
Jake Dallimore [Thu, 12 Jan 2023 03:25:57 +0000 (11:25 +0800)]
MDL-76862 user: Unit test for setting user home page preferences
Paul Holden [Wed, 11 Jan 2023 22:40:49 +0000 (22:40 +0000)]
MDL-76862 user: ensure user can only update own preferred start page.
Tim Hunt [Fri, 6 Jan 2023 12:55:40 +0000 (12:55 +0000)]
MDL-76810 redirect handling: ensure return URLs are properly sanitised
Andrew Nicols [Tue, 10 Jan 2023 03:19:02 +0000 (11:19 +0800)]
MDL-76811 mod_data: Remove duplicate tests
Andrew Nicols [Fri, 6 Jan 2023 04:57:52 +0000 (12:57 +0800)]
MDL-76811 mod_data: strpos check should be strict
Andrew Nicols [Tue, 10 Jan 2023 03:18:36 +0000 (11:18 +0800)]
MDL-76811 mod_data: Generator test cleanup
Paul Holden [Thu, 5 Jan 2023 10:53:18 +0000 (10:53 +0000)]
weekly release 3.9.18+
Luca Bösch [Tue, 22 Nov 2022 14:21:49 +0000 (15:21 +0100)]
MDL-76375 quiz generator: Allow more than one attempt by Behat tests.
Sara Arjona [Thu, 29 Dec 2022 11:58:01 +0000 (12:58 +0100)]
weekly release 3.9.18+
Ilya Tregubov [Thu, 29 Dec 2022 07:33:55 +0000 (14:33 +0700)]
MDL-76399 behat: switch to appropriate Behat step for selects.
Paul Holden [Wed, 28 Dec 2022 10:08:10 +0000 (10:08 +0000)]
MDL-76760 tool_behat: defer library loading until service execution.
Ensures that API documentation can be generated without requiring
the presence of the `vendor/` directory.
Philipp Imhof [Tue, 20 Dec 2022 13:20:25 +0000 (14:20 +0100)]
MDL-76731 behat: add steps to check for version
Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
Ilya Tregubov [Thu, 22 Dec 2022 12:16:44 +0000 (19:16 +0700)]
weekly release 3.9.18+
Andrew Nicols [Wed, 21 Dec 2022 13:11:04 +0000 (21:11 +0800)]
MDL-75105 tool_behat: Coding style fixes
Mark Johnson [Thu, 30 Jun 2022 14:34:29 +0000 (15:34 +0100)]
MDL-75105 tool_behat: List available data generators
This will find all data generators that can be used in behat via the
'the following "something" exist:' step, and display them in a select
list on the step definitions page.
When a generator is selected, it will fetch the required fields for that
generator and display them on the page.