Commit Graph

9399 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7) 955a276e6e MDL-76459 xmldb: Add environmental check to verify $CFG->prefix
While, right now, sites using long (> 10 chars) $CFG->prefix
can continue working (because we still don't have any table
> 28 chars), as soon as some new table with long name is added,
it won't work with PostgreSQL anymore (if the 63 limit is raised).

Hence, this environmental check will verify on both install and
upgrade that the $CFG->prefix is always <= 10 chars.

Sites with longer prefixes will need to rename all their tables
(and maybe other objects, depending on the dbtype) to use a shorter
prefix.
2023-09-02 09:22:36 +02:00
Andrew Nicols c9682dfece Merge branch 'MDL-78684-400' of https://github.com/andelacruz/moodle into MOODLE_400_STABLE 2023-08-16 22:45:00 +08:00
Michael Hawkins 7d120086ae MDL-78763 tool_policy: Initialise returnurl as a moodle_url in viewall 2023-08-10 18:45:14 +07:00
Shamim Rezaie cddb24754e MDL-66212 tool_lpimport: properly check capabilities
The moodle/competency:competencymanage capability should be checked
before showing the import and export pages.
2023-08-04 12:55:23 +02:00
Angelia Dela Cruz e24eb760ae MDL-78498 Behat: Use data generators for forum posts and replies
This commit does few things:
* Replace manual forum posts and replies to use data generator.
* It also changes the code to handle social forums.
* Other behat clean-ups and optimization.

Co-authored-by: Simey Lameze <simey@moodle.com>
2023-08-01 16:08:18 +08:00
Angelia Dela Cruz 5017f192ba MDL-78684 Behat: Replace gradebook navigation to use page resolvers
This commit also does other things such as:
- Replace manual steps to setup gradebook by data generators
- Added support for outcomes and scales page resolvers
- Behat clean up
2023-08-01 15:53:59 +08:00
Eloy Lafuente (stronk7) 1b8b3e9ac8 MDL-76724 environment: Moodle 4.3 requirements
Note that there aren't changes since Moodle 4.2
so this is a complete copy of the information
for that version.
2023-06-24 12:30:08 +02:00
Angelia Dela Cruz 2c8f3c7ed5 MDL-74021 behat: Page behat generators use UI
Replace steps that manually add page instances via the UI and use
Behat generators. This improves the speed of Behat test runs.

Co-authored-by: Simey Lameze <simey@moodle.com>
2023-06-19 17:20:13 +08:00
Andrew Nicols 8ff3117478 Merge branch 'MDL-69231-400' of https://github.com/lameze/moodle into MOODLE_400_STABLE 2023-06-15 10:55:48 +08:00
Ilya Tregubov cbea4fa598 Merge branch 'MDL-70152-400' of https://github.com/andelacruz/moodle into MOODLE_400_STABLE 2023-06-14 13:25:29 +08:00
Andrew Nicols 27249f3681 Merge branch 'MDL-76406-400' of https://github.com/safatshahin/moodle into MOODLE_400_STABLE 2023-06-08 10:41:47 +08:00
Sara Arjona 815f0b338f Merge branch 'MDL-78322-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE 2023-06-07 12:43:16 +02:00
Paul Holden e8cc468184 MDL-77193 mnet: correct sorting of access control table. 2023-06-07 09:53:57 +08:00
Simey Lameze 78aa80dd5f MDL-69231 behat: remaining work for role capability generator
This commit does few things:
* Unify data generators usage to role short name.
* Replace remaining manual steps to use the new data generator.
* Also replaced other manual steps to set config to use data generators.
* Tidy up of some tests, aligning pipes and splitting one line steps into multiple lines.
* Fixes tests to have one Given/When/Then per scenario.
2023-06-02 12:39:52 +08:00
Andrew Nicols 063e8fb534 MDL-69231 behat: Update tests to use new generator 2023-06-02 12:39:52 +08:00
Andrew Nicols 091aa9b872 MDL-69231 tests: Add role capability setting generator 2023-06-02 12:39:52 +08:00
Safat c2e0c4a533 MDL-76406 core: Add environment check for versions not supporting 8.2 2023-06-02 12:09:41 +10:00
Ilya Tregubov c7262e9ffb Merge branch 'MDL-77259-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE 2023-06-01 09:30:34 +08:00
Sara Arjona 3f70b37d28 Merge branch 'MDL-77907-400' of https://github.com/andelacruz/moodle into MOODLE_400_STABLE 2023-05-31 12:18:18 +02:00
Angelia Dela Cruz e0e4b2fad2 MDL-70152 behat: Forum behat generators use UI
Behat cleanup and optimisation
2023-05-29 10:24:10 +08:00
Angelia Dela Cruz b6928826e1 MDL-70152 behat: Forum behat generators use UI
Replace steps that manually add forum and forum post instances
via the UI and use Behat generators. This improves the speed of
Behat test runs.
2023-05-29 10:24:02 +08:00
Andrew Nicols fbc7ce063f MDL-78346 tool_langimport: Print any notifications before redirect 2023-05-25 14:55:42 +08:00
Andrew Nicols 57e7158352 MDL-78346 tool_langimport: Redirect after action to prevent resubmission 2023-05-25 11:43:41 +08:00
Andrew Nicols 6f3c18b235 MDL-78346 tool_langimport: Prevent uninstallation of invalid targets 2023-05-25 11:43:41 +08:00
Paul Holden 744a3438d8 MDL-78322 tool_cohortroles: don't assign roles to deleted users. 2023-05-22 20:14:45 +01:00
Andrew Nicols 2fdf057520 MDL-77733 behat: Remove extraneous no-axe option
There is no need for no-axe if we make axe a boolean value. We already
have automatic support for negated boolean flags.
2023-05-19 11:28:19 +08:00
Andrew Nicols 83c9db9e08 Merge branch 'MDL-77733-400' of https://github.com/lameze/moodle into MOODLE_400_STABLE 2023-05-18 11:44:47 +08:00
Paul Holden aab6b69293 MDL-77259 tool_monitor: use core component API for event list.
The previous method of hardcoded filepaths, specifically for events
belonging to core, meant that any events belongs to core subsystems
were omitted (core_customfield, core_h5p, core_payment, etc).
2023-05-16 09:50:28 +01:00
Angelia Dela Cruz cd4b6f36ab MDL-77907 Behat: Coverage for duplicating competency framework 2023-05-16 16:28:01 +08:00
Andrew Nicols a2c1c036a9 MDL-75552 badges: move apiBase consumption to backpack
The apiBase in .well-known/badgeconnect.json was ignored and it was
causing some failures when connecting or sending badges to an
external backpack.
For OBv2.1, it has been changed to always use the apiBase defined
in the badgeconnect.json backpack provider.
2023-05-09 08:51:36 +02:00
Jake Dallimore 39a94da184 Merge branch 'MDL-78023-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE 2023-05-03 16:16:16 +08:00
Ilya Tregubov 63d423fc6d Merge branch 'MDL-77320-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE 2023-05-03 15:37:26 +08:00
Paul Holden b1f4566f5e MDL-77320 tool_licensemanager: restrict exposure of user sesskey. 2023-04-27 09:32:43 +01:00
Paul Holden 6a2c9cfbc7 MDL-78023 tool_policy: cast timemodified column on table download. 2023-04-25 14:51:14 +01:00
Paul Holden 41a6048b0b Merge branch 'MDL-73331_400_toolbrickfieldadvancedtab' of https://github.com/brickfield/moodle into MOODLE_400_STABLE 2023-04-25 11:54:18 +01:00
Jun Pataleta c4f58034ab MDL-77927 core: mod_assignment subplugins environment check 2023-04-21 15:55:13 +08:00
Max Larkin addb8f1c03 MDL-73331 tool_brickfield: Update advanced tab display 2023-04-19 13:24:06 +01:00
Andrew Nicols ddc8ddb047 Merge branch 'MDL-77829-400' of https://github.com/stevandoMoodle/moodle into MOODLE_400_STABLE 2023-04-18 12:32:46 +08:00
Amaia Anabitarte 75bf395e47 MDL-76998 admin: Option to reset course indentation 2023-04-13 16:57:03 +02:00
Sara Arjona dbb0410d58 Merge branch 'MDL-77860-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE 2023-04-13 13:45:06 +02:00
Sara Arjona 243c35b3e8 Merge branch 'MDL-77618-admin-password-autocomplete-MOODLE_400_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_400_STABLE 2023-04-13 12:19:21 +02:00
Sara Arjona b47fa670f0 Merge branch 'MDL-77256-400' of https://github.com/rbravod/moodle into MOODLE_400_STABLE 2023-04-13 11:20:38 +02:00
Stevani Andolo 8ec461823a MDL-77829 core: Added environment check for mod_assignment
Decided to add an environment check before uninstalling the
mod_assignment plugin to prevent data lost.
2023-04-10 13:55:20 +08:00
Paul Holden 9cf38cfd39 MDL-77860 tool_moodlenet: use localised language strings for import. 2023-04-05 23:05:34 +01:00
Simey Lameze 56bfaebb70 MDL-77733 behat: enable Axe accessibility tests by default 2023-04-04 09:20:19 +08:00
Paul Holden dec59bd614 Merge branch 'MDL-77227-400' of https://github.com/aanabit/moodle into MOODLE_400_STABLE 2023-04-03 10:47:38 +01:00
Paul Holden 166c6cc61e Merge branch 'MDL-76481_400_Brickfield_TCPDF_error' of https://github.com/brickfield/moodle into MOODLE_400_STABLE 2023-03-30 12:50:11 +01:00
Max Larkin 7956a8d814 MDL-76481 tool_brickfield: Fix PHP 8 report download 2023-03-30 09:15:28 +01:00
Amaia Anabitarte d9f694bfa8 MDL-77227 roles: Remove extra information for override page 2023-03-29 18:19:26 +02:00
Jun Pataleta 2834086d07 Merge branch 'MDL-77382-400' of https://github.com/snake/moodle into MOODLE_400_STABLE 2023-03-29 09:48:11 +08:00