103986 Commits

Author SHA1 Message Date
Huong Nguyen
d9d068699c MDL-73784 usertours: Deprecation of the step::get_string_from_input
Modified code to just simply call helper::get_string_from_input() rather than duplicating the code
2022-02-07 09:45:31 +07:00
Huong Nguyen
21caea1f9a MDL-73784 usertours: Improve the tours maching
- Introduce some new constants like MY, MYCOURSES, FRONTPAGE_MY...
 - The Tour now can detect the URL match is pointing to Dashboard (/my/) or My Course (/my/courses.php) correctly
2022-02-07 09:39:46 +07:00
Andrew Nicols
2d39b5bb39 Merge branch 'master_MDL-73666-questionimagebug' of https://github.com/catalyst/moodle-MDL-70329 2022-02-07 10:12:20 +08:00
Andrew Nicols
bb20aefc8d Merge branch 'MDL-71712-master' of https://github.com/aanabit/moodle 2022-02-07 09:53:09 +08:00
Marc-Alexandre Ghaly
66115d7f0b MDL-73666 core_question: Question bank usage and comment modal fix
Fix for question bank modals not showing question images.
2022-02-07 08:37:05 +11:00
Eloy Lafuente (stronk7)
7a0d024e60 MDL-73659 phpunit: restore_date, api, rule, plugin, manager & helper
All restore_date_test, api_test, rule_test, plugin_test,
manager_test, helper_test testcase classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Remove file phpdoc block
- Remove MOODLE_INTERNAL if not needed.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.

Special mention to:

- All restore_date_test cases have been put under xxx\backup
  level 2 (valid API) namespace.
2022-02-05 00:03:32 +01:00
Sara Arjona
6652ec135b on-demand release 4.0dev+ 2022-02-04 18:18:46 +01:00
Paul Holden
b8f9f6635c MDL-73669 behat: correctly deprecate step for using flat navigation. 2022-02-04 17:18:43 +01:00
Marina Glancy
15eb402228 MDL-73669 core_enrol: move deprecated behat steps to own file
Steps were initially deprecated in MDL-72090
2022-02-04 17:17:08 +01:00
Marina Glancy
c5c33d8eba MDL-73669 core_calendar: move deprecated behat steps to own file
Steps were initially deprecated in  MDL-72810
2022-02-04 17:17:08 +01:00
Marina Glancy
31751c2f32 MDL-73669 behat: allow multiple files with deprecated steps 2022-02-04 17:17:08 +01:00
Sara Arjona
de83532bfa MDL-71696 question: Fix random PHPUnit error with question order 2022-02-04 18:10:35 +02:00
Sara Arjona
9cc81bb7bf MDL-71696 question: Fix Oracle GROUP BY error - Round 2 2022-02-04 18:10:35 +02:00
Eloy Lafuente (stronk7)
3e071a5240 Merge branch 'MDL-71696-behat-oracle-fix' of https://github.com/sarjona/moodle 2022-02-04 18:10:35 +02:00
Sara Arjona
2a01259d85 MDL-71696 core_question: Fix Oracle GROUP BY error 2022-02-04 18:10:35 +02:00
Paul Holden
2e8a9623e5 MDL-73773 behat: correctly deprecate step for using flat navigation. 2022-02-04 11:59:36 +00:00
Jun Pataleta
33208c84f3 Merge branch 'MDL-73651-master' of git://github.com/rezaies/moodle 2022-02-04 10:36:50 +08:00
Shamim Rezaie
a159527748 MDL-73651 calendar: search in localised module type names as well 2022-02-04 10:06:05 +11:00
Víctor Déniz
a5a3f87a76 Merge branch 'MDL-73514' of https://github.com/stronk7/moodle 2022-02-03 22:20:20 +00:00
Víctor Déniz
8890a730fc Merge branch 'MDL-73517' of https://github.com/stronk7/moodle 2022-02-03 22:02:39 +00:00
Víctor Déniz
6303c65b3f Merge branch 'MDL-73758-master' of https://github.com/snake/moodle 2022-02-03 21:45:50 +00:00
Eloy Lafuente (stronk7)
ecbdf3fbad Merge branch 'MDL-71696-fix-oracle' of https://github.com/sarjona/moodle 2022-02-03 22:38:28 +01:00
Víctor Déniz
29f699cef7 Merge branch 'MDL-73605' of https://github.com/paulholden/moodle 2022-02-03 21:29:09 +00:00
Eloy Lafuente (stronk7)
549cfc5efb Merge branch 'MDL-73765-master-twenty-three-minutes' of https://github.com/mudrd8mz/moodle 2022-02-03 22:27:02 +01:00
Sara Arjona
dc8b6a84a1 MDL-71696 question: Fix Oracle failures with ambiguous colum 2022-02-03 19:28:27 +01:00
David Mudrák
296f714916 MDL-73765 task: Fix calculation of random minute in the task schedule
The random minute was incorrectly set to a random value from the range
0 - 23 instead of 0 - 59 due to this copy & paste mistake.
2022-02-03 19:22:58 +01:00
Sara Arjona
1d0609bbdd MDL-71696 question: Align new tables with install/upgrade
Amended because, in all cases, install.xml wins and we
have make upgrade.php to match it...

But in the question_versions->status case, that needs to
be NOT_NULL, so upgrade was correct and install.xml has
been changed for it.

Note this has been changed without using the editor because
it has been detected that there are other changes in the xml
file that have been added manually, we'll create a "reconcile"
issue to fix that (mainly whitespace).

So, yes, please, always use the editor.
2022-02-03 16:32:04 +01:00
Ilya Tregubov
aafeca8f75 Merge branch 'MDL-73664-master' of https://github.com/aanabit/moodle 2022-02-03 16:37:55 +02:00
Eloy Lafuente (stronk7)
4f02047208 Merge branch 'MDL-73507-master' of https://github.com/lameze/moodle 2022-02-03 15:25:18 +01:00
Gareth Barnard
9636ca7e36 MDL-73719 themes: Redundant theme_reset_all_caches callback. 2022-02-03 15:11:00 +01:00
Eloy Lafuente (stronk7)
a2e4be3620 Merge branch 'MDL-73728-master' of https://github.com/andrewnicols/moodle 2022-02-03 14:59:00 +01:00
Paul Holden
002077952a MDL-73605 mod_forum: add label/help to the subscription mode options. 2022-02-03 13:25:34 +00:00
Ilya Tregubov
2b4f9d3c40 Merge branch 'MDL-69088' of https://github.com/jacdsouza/moodle 2022-02-03 14:56:11 +02:00
Amaia Anabitarte
0023f63772 MDL-73664 lib: Set Moodle files after ADODB upgrade 2022-02-03 13:56:02 +01:00
Sara Arjona
b841a811be Merge branch 'master_MDL-71696-versioning-integration' of https://github.com/catalyst/moodle-MDL-70329 2022-02-03 13:25:27 +01:00
Jun Pataleta
a772f13eba Merge branch 'MDL-73632-master-2' of https://github.com/bmbrands/moodle 2022-02-03 19:27:56 +08:00
Safat Shahin
bf55e5a481 MDL-71696 core_question: class autoload changes
This commit implements some class autoloading
fixes to align with core question structure.
2022-02-03 22:22:50 +11:00
Safat Shahin
3008edd366 MDL-71696 core_question: Implement question status change
This commit implements the status change pop up for a question
in the base view. This feature update will allow the change of
status of a question without creating a new version.
This commit also implements the status as a char rather than
an int value.
2022-02-03 22:22:50 +11:00
Marc-Alexandre Ghaly
b1ad75aef5 MDL-71696 qbank_preview: previewquestion plugin update
This commit implements versioning and associated features
in the previewquestion plugin. There have been some major
changes in the random question and version selection for
questions. This commit made those changes as well as added
some more features in the preview for version selection
and adds more behat coverage.
2022-02-03 22:22:50 +11:00
Safat Shahin
111951d861 MDL-71696 mod_quiz: quiz updates and behat coverage
The versioning changes will require some major changes
in the backup and restore of question bank and its
elements. This change introduces those changes to make
it compatible with the new world of versioning in question
bank. This commit also removes quiz_slots fields and
quiz_slot_tags table.
This commit will also introduce the versioning db
structure and some major changes to the quiz
and quiz attempts for the question, random
question and the view.
This commit implements the behat changes for versioning
in core question and associated locations.
2022-02-03 22:22:44 +11:00
Guillermo Gomez
c6cfca2a08 MDL-71696 core_question: Changes for versioning
This commit adds the changes in questiontype base
to work with new question tables and the new structure in the
databse. Also needed for versioning.
This implementation will also introduct the question status
which allows a question to be in draft and ready status.
I also introduces changes to the base view where it shows
the latest version of the questions. The view of versions
for a question is not implemented in this commit.
This implementation will also introduce changes in the core
qtype plugins to support versioning and the changed
db schema.
2022-02-03 22:22:44 +11:00
Safat Shahin
7547f3e9f0 MDL-71696 tool_brickfield: accessibility changes for versioning
This implementation will introduce changes in the admin tools plugin brickfield to support versioning and the changed db schema.
2022-02-03 22:22:44 +11:00
Safat Shahin
fc4c108f5b MDL-71696 core_question: question instance report
This commit implements changes in the question
instance report to support the new db structure
for versioning. I considers each question as a
an entity rather than counting each versions.
2022-02-03 22:22:44 +11:00
Guillermo Gomez
c34b89a3c2 MDL-71696 core_question: Implement new database schema
This commit implements the new database structure for
versioning in question. It also does the migration of
current data to the new structure.

Co-Authored-By: Safat Shahin <safatshahin@catalyst-au.net>
Co-Authored-By: Guillermo Gomez Arias <guillermogomez@catalyst-au.net>
2022-02-03 22:22:38 +11:00
Andrew Nicols
fc082d349c MDL-73728 admin: Move adminpresets to admin/presets
This commit moves the presets subsystem to a location within the admin
folder, which is more appropriate given its purpose and reduces
developer frustration with tab completion of the admin directory.
2022-02-03 19:14:28 +08:00
Jun Pataleta
4e1a6e6830 Merge branch 'MDL-73646-master-v2' of https://github.com/sharidas/moodle 2022-02-03 19:09:37 +08:00
Jackson D'souza
18de3388f8 MDL-69088 cache: Make file cache store purge async 2022-02-03 10:30:09 +00:00
Eloy Lafuente (stronk7)
02747f07d3 Merge branch 'MDL-73682' of https://github.com/paulholden/moodle 2022-02-03 10:59:56 +01:00
Ilya Tregubov
20cbf048bc Merge branch 'MDL-73543-master' of https://github.com/lameze/moodle 2022-02-03 10:52:25 +02:00
Jake Dallimore
b6e9d54a38 MDL-73758 availability: fix info::is_available_for_all()
Should only return true early when the config setting is disabled,
not when it's enabled.
2022-02-03 16:41:44 +08:00