Commit graph

23912 commits

Author SHA1 Message Date
Andrew Nicols
95c6d3c8d9 Merge branch 'MDL-73716' of https://github.com/stronk7/moodle 2022-02-08 10:59:34 +08:00
Víctor Déniz
1a42a95e8d Merge branch 'MDL-73279' of https://github.com/call-learning/moodle 2022-02-07 18:13:20 +00:00
Eloy Lafuente (stronk7)
43280530b6 MDL-73716 phpunit: remove old simpletest static members
And replace them by phpunit @covers annotations including
all the classes declared or extended in the removed members.

It's not awesome coverage, but better than nothing.
2022-02-07 10:42:17 +01:00
Andrew Nicols
8c08634b69 Merge branch 'MDL-73659' of https://github.com/stronk7/moodle 2022-02-07 13:34:01 +08:00
Andrew Nicols
bb20aefc8d Merge branch 'MDL-71712-master' of https://github.com/aanabit/moodle 2022-02-07 09:53:09 +08: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
Claude Vervoort
b4d9519c47 MDL-73779 mod_lti: dynreg fix messages supported 2022-02-04 15:32:55 -05:00
Laurent David
e1d255c95b MDL-73368 mod_bigbluebuttonbn: update activity icon
* Add the new icon (svg and png)
* Remove unused icon and font (the glyph was used once in the removed style)
2022-02-04 10:44:19 +01: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
Sara Arjona
dc8b6a84a1 MDL-71696 question: Fix Oracle failures with ambiguous colum 2022-02-03 19:28:27 +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
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
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
Jun Pataleta
ee7b119943 Merge branch 'MDL-73363-master' of https://github.com/peterRd/moodle 2022-02-02 19:14:39 +08:00
Eloy Lafuente (stronk7)
5aa93e3066 Merge branch 'MDL-72466-master' of https://github.com/bmbrands/moodle 2022-02-02 12:10:18 +01:00
Mihail Geshoski
f8cc5c8f8e MDL-73633 quiz: Set 'Overrides' to link to user overrides by default 2022-02-02 10:34:29 +08:00
Mihail Geshoski
a50dd96c0d MDL-73633 lesson: Set 'Overrides' to link to user overrides by default 2022-02-02 10:34:29 +08:00
Mihail Geshoski
d0dad63bc3 MDL-73633 assign: Set 'Overrides' to link to user overrides by default 2022-02-02 10:34:29 +08:00
Amaia Anabitarte
4c7fac1957 MDL-71712 lib: Set Moodle files after PHP-JWT upgrade 2022-02-01 16:25:35 +01:00
Laurent David
4d726630b1 MDL-73279 mod_bigbluebuttonbn: Remove notify change option in settings
* As 'Send content change notification' is standard in all activities in Moodle 4.0
 we should be removing 'Notify this change to users enrolled'
* Fix and adjust tests
2022-02-01 15:39:31 +01:00
Mihail Geshoski
f2000f098f MDL-73357 mod_data: Update behat tests
After replacing the tabs navigation with the secondary and tertiary
navigation, the completion data will be no longer displayed on all
pages in the database activity. Therefore, we need to update the
behat tests that still verify the existance of completion data in
pages other than the database view page.
2022-02-01 11:45:12 +08:00
Mihail Geshoski
4cc2b15e51 MDL-73357 mod_data: Update tertiary navigation
The following commit disables the acivity header information in
pages where this information is not required, adds missing headings,
updates the breadcrumbs, repositions the groups selector in the
database view page.
2022-02-01 11:45:12 +08:00
Sara Arjona
291ddd3bce MDL-73337 quiz: Fix PHPUnit errors with missing context_module 2022-01-28 08:38:59 +01:00
Tien Nguyen
e21a8577c6 MDL-73337 Quiz: Editing quizzes should be logged in detail 2022-01-27 22:49:54 +00:00
Bas Brands
7c76e1c349 MDL-72466 core_output: dropdown menu alignment 2022-01-27 17:24:20 +01:00
Ilya Tregubov
57fe1a3099 Merge branch 'MDL-67853-master' of https://github.com/crazyserver/moodle 2022-01-27 16:41:19 +02:00
Pau Ferrer Ocaña
b4c75986ad MDL-67853 message: Adapt tests removing online/offline settings 2022-01-27 15:22:15 +01:00
Pau Ferrer Ocaña
d74bd798b6 MDL-67853 message: Remove on/offline settings on message preferences 2022-01-27 15:22:15 +01:00
Shamim Rezaie
0f803de8aa Merge branch 'MDL-73254' of https://github.com/call-learning/moodle 2022-01-24 19:30:13 +11:00
Laurent David
9877868c6f MDL-73254 mod_bigbluebuttonbn: Fix hide recording functionality
* The hide recording is working in combination with several settings and should
allow the Record button to be hidden either globally on in a given activity
2022-01-24 08:33:45 +01:00
Jake Dallimore
041b1beb46 Merge branch 'MDL-73347-master' of https://github.com/sarjona/moodle 2022-01-24 13:40:57 +08:00
Peter Dias
95b674062f MDL-73363 page: Remove printheading settings from page. 2022-01-24 08:52:15 +08:00
Eloy Lafuente (stronk7)
100bc51f1d MDL-73485 phpunit: externallib, generator and filter tescase names
All externallib_test, generator_test and filter_test classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- 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 tests under testing/tests:

1) The core_testing component doesn't exist.
2) But testing/tests are allowed because there is a suite pointing to it (phpunit.xml).
3) So, the only possible namespace for them is "core".
4) And to avoid problems with other core testcases (under lib/tests)
   they have been renamed to have testing_xxxx as prefix.

Finally, also modified calendar/tests/events/events_test.php because it uses
some renamed (core_calendar_externallib_testcase => \core_calendar\externallib_test)
classes.
2022-01-21 19:48:23 +01:00
Eloy Lafuente (stronk7)
d2ad5e8461 MDL-73523 libraries: openssl_free_xxx() methods are deprecated in php80
So we are putting them under a standard PHP_MAJOR_VERSION < 8 condition.

Also, added TODO comments to remember to delete that block of code when
php80 becomes the minimum required versions in the future (Moodle 4.3?).

When possible, an issue has been created upstream, else a comment in
readme_moodle files has been added.

Finally, when the keys being freed were class or object attributes, also
nullify them (but when the calls were part of destructor methods).
2022-01-20 14:48:22 +01:00
Shamim Rezaie
945058b890 Merge branch 'MDL-73342-master' of https://github.com/sarjona/moodle 2022-01-18 17:00:59 +11:00
Andrew Nicols
68a711ba9b Merge branch 'MDL-73218' of https://github.com/call-learning/moodle 2022-01-18 11:15:25 +08:00
Jun Pataleta
d481ce1bfb Merge branch 'MDL-69966-master' of https://github.com/danielneis/moodle 2022-01-18 10:53:51 +08:00
Andrew Nicols
6670c04c23 Merge branch 'MDL-73476' of https://github.com/stronk7/moodle 2022-01-18 09:31:44 +08:00
Víctor Déniz
cb3e2eeeab Merge branch 'MDL-73206' of https://github.com/call-learning/moodle 2022-01-17 22:36:06 +00:00
Daniel Neis Araujo
1346a3509a MDL-69966 quiz: start attempt button should be a primary button 2022-01-17 13:53:31 -03:00
Laurent David
64d9f988f4 MDL-73206 mod_bigbluebuttonbn: Fix issue with participant roles
* Participant roles could not be updated to moderator and always defaults to viewer
* Remove additional DB query in form to retrieve the current module information
2022-01-17 11:48:31 +01:00
Ilya Tregubov
e21ec28dc3 Merge branch 'MDL-73356-master' of git://github.com/abgreeve/moodle 2022-01-17 12:10:18 +02:00
Ilya Tregubov
f5740bf995 Merge branch 'MDL-73438-master' of git://github.com/mihailges/moodle 2022-01-17 10:42:45 +02:00
Laurent David
3d197d7493 MDL-73218 mod_bigbluebuttonbn: Remove phased out settings
* Remove deprecated settings :
  - bigbluebuttonbn_recordings_validate_url,
  - bigbluebuttonbn_recordings_html_default,
  - bigbluebuttonbn_recordings_html_editable
2022-01-17 09:17:15 +01:00
Andrew Nicols
472568f6b3 Merge branch 'MDL-73360-master' of https://github.com/peterRd/moodle 2022-01-17 13:36:47 +08:00