Commit graph

3972 commits

Author SHA1 Message Date
Andrew Nicols
7dd0a6983d MDL-73314 tool_componentlibrary: Add shortcode for jsdoc 2022-01-24 09:53:31 +08:00
Jun Pataleta
35338975c3 MDL-73635 tool_componentlibrary: Move dynamic tabs sample page
* Move the example page for the dynamic tabs component into the examples
folder.
2022-01-24 09:24:08 +08:00
Jun Pataleta
7a6ff551a0 MDL-73635 tool_componentlibrary: Document how to add example files 2022-01-24 09:24:08 +08:00
Jun Pataleta
080e12e9ac MDL-73635 tool_componentlibrary: Move example codes to examples folders 2022-01-24 09:21:55 +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
Huong Nguyen
46b5fa0279 MDL-73210 usertours: Exported file does not contain the uploaded image
The export file now contains the attached files in the ATTO editor
We can export and import the tour to another system without losing them
 - Export process now convert the files to base64 and embed them into the export file.
 - Import process now convert the base64 from the export file to Moodle store_file.
2022-01-21 17:11:25 +07:00
Huong Nguyen
2137ce6539 MDL-73188 usertours: Make language string ID work again
- New dropdown was created, user can choose to enter the content manually
  or using Moodle Language string
- New text field was created to allow user to input the Lang string format
- New validation was created to validate the language identifier
- New Behat tests were created to validate the new feature
2022-01-21 17:07:39 +07:00
Max Larkin
4e104467ce MDL-73555 tool_brickfield: More efficient summary data processing 2022-01-20 11:40:55 -05:00
Juan Leyva
d7d0987553 MDL-73625 tool_mobile: Adapt mobile settings for 4.0 2022-01-20 12:36:13 +01:00
David Matamoros
5e42a09a92 MDL-73436 tool_componentlibrary: Document dynamic tabs component 2022-01-20 11:01:54 +01:00
Andrew Nicols
6670c04c23 Merge branch 'MDL-73476' of https://github.com/stronk7/moodle 2022-01-18 09:31:44 +08:00
Eloy Lafuente (stronk7)
210ffb2367 Merge branch 'MDL-73178' of https://github.com/paulholden/moodle 2022-01-17 18:34:47 +01:00
Ilya Tregubov
67adef891f Merge branch 'MDL-73358-master' of https://github.com/junpataleta/moodle 2022-01-17 16:11:32 +02:00
Sara Arjona
ca1d3b7f8c MDL-73334 componentlibrary: Remove ilegal whitespaces 2022-01-17 12:01:00 +01:00
Sara Arjona
fac897936f Merge branch 'MDL-73334-master' of https://github.com/lameze/moodle 2022-01-17 11:47:09 +01:00
Simey Lameze
cc7de3e86c MDL-73334 core: add CL documentation for core/confirm 2022-01-17 18:10:41 +08:00
Sara Arjona
bc771bdfd6 Merge branch 'MDL-72412-master' of https://github.com/junpataleta/moodle 2022-01-17 08:28:47 +01:00
Eloy Lafuente (stronk7)
0c53a3dec8 MDL-73476 phpunit: events, external and search tescase names
All events_test, external_test and search_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 lib/external/tests/external_test.php:
- external is not a valid component
- hence, its only valid namespace is "core"
- also, it's testing lib/external/externallib.php
- hence, the file (and class) have been renamed to external_externallib_test.php
  (to avoid conflicts with other external_test that may exist in core)
2022-01-14 16:18:39 +01:00
Paul Holden
20b8a47596 MDL-73178 roles: show both role names in permission table. 2022-01-14 12:18:34 +00:00
Sara Arjona
53fe23d8b5 MDL-73347 behat: Add blocks hidden by default for boost
For the boost them, a few themes have been hidden by default.
The unaddable setting should be set to let admins add them again,
because some behat tests need them.
2022-01-14 13:08:48 +01:00
Jun Pataleta
a926979c0c MDL-73358 report: Add page content heading for report pages 2022-01-14 16:14:07 +08:00
Jun Pataleta
0b2032cb1e MDL-72412 core: Add the image role to informative icon fonts 2022-01-14 10:31:47 +08:00
Andrew Nicols
626c8b43bf Merge branch 'MDL-65801' of https://github.com/paulholden/moodle 2022-01-14 09:30:11 +08:00
Eloy Lafuente (stronk7)
10e4cec874 Merge branch 'MDL-73004-master_access_unit_tests' of https://github.com/brickfield/moodle 2022-01-13 19:23:13 +01:00
Mike Churchward
23cb59bd85 MDL-73004 tool_brickfield: Fix unit tests for question areas.
Search array of areas for expected question components, rather than assume an array position.
2022-01-13 11:56:41 -05:00
Paul Holden
6ed8458eda MDL-65801 lang: final removal of deprecated 37/38 strings.
The following lang strings have been undepecated, as they are still
in use:

* errorcoursewronglypublished, core_hub
* eventrolecapabilitiesupdated, core_role
2022-01-13 09:50:50 +00:00
Eloy Lafuente (stronk7)
7be7bb5164 Merge branch 'MDL-73546-master' of https://github.com/sarjona/moodle 2022-01-12 18:27:39 +01:00
Shamim Rezaie
9142285ad6 Merge branch 'MDL-69555-master' of git://github.com/jleyva/moodle 2022-01-12 14:41:48 +11:00
Andrew Nicols
f90d35580c Merge branch 'MDL-73474-master' of https://github.com/aanabit/moodle 2022-01-12 11:06:40 +08:00
Sara Arjona
65d56fa87b MDL-73546 tool_admin_presets: Fix link error in logs 2022-01-11 17:14:37 +01:00
Juan Leyva
34ceeb4883 MDL-69555 tool_mobile: Allow set auto-login min request time 2022-01-11 14:07:30 +01:00
Juan Leyva
80a9eef971 MDL-69555 tool_mobile: Allow to set QR login keys duration time 2022-01-11 14:07:30 +01:00
Amaia Anabitarte
bb056ca1f1 MDL-73474 tool_admin_presets: Remove unused strings 2022-01-11 11:38:46 +01:00
Huong Nguyen
1ac6a82e1f MDL-72809 Themes: Fix the missing 'Reset user tour on this page' link 2022-01-07 17:03:32 +07:00
Jun Pataleta
c0ec69a3aa Merge branch 'MDL-73352' of https://github.com/stronk7/moodle 2022-01-04 21:25:53 +08:00
Amaia Anabitarte
570d2e7492 MDL-73397 adminpresets: Remove tree-view 2022-01-04 12:13:19 +01:00
Sara Arjona
1f47ef1a34 MDL-73397 adminpresets: Move sensiblesettings to core
The sensiblesettings setting has been moved from tool_admin_presets
to adminpresets component where it belongs, in order for being able
to use it from the API to decide whether sensible settings should
be included when exporting them.
2022-01-04 12:13:19 +01:00
Sara Arjona
8bf52e3195 MDL-73397 tool_admin_presets: Move data and API methods to new component
A new component has been created, core_adminpresets, and tables and some
API methods from this tool have been moved there, so it can spread over
other plugins.
Currently, the tool_admin_presets plugin only provides the UI to interact
with the core adminpresets stuff.
2022-01-04 12:13:19 +01:00
Eloy Lafuente (stronk7)
511801cb46 MDL-73352 phpunit: lib_test and locallib_test testcase names
All lib_test and locallib_test classes:

- Namespaced with component (and API whenever makes sense).
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed or add new uses.
- All them passing individually.
- Complete runs passing too.

Special mention to tests under login/tests:

1) The core_login component doesn't exist.
2) But login/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 login_xxxx as prefix.
2021-12-30 16:21:42 +01:00
Shamim Rezaie
2eaab7ec3e Merge branch 'MDL-73394-master' of https://github.com/sarjona/moodle 2021-12-30 16:10:27 +11:00
Sara Arjona
bfa24ae53a MDL-73394 admin_presets: New setting to store last preset applied
A new setting has been added to config_plugins to store the last
preset identifier applied.
2021-12-23 16:07:57 +01:00
Jun Pataleta
80c17cd2a0 Merge branch 'MDL-72701-master' of https://github.com/andrewnicols/moodle 2021-12-23 12:10:46 +08:00
Sara Arjona
cf651a1ed4 Merge branch 'MDL-73298-master' of https://github.com/bmbrands/moodle 2021-12-22 16:50:25 +01:00
Sara Arjona
5d87a70f37 Merge branch 'MDL-73256' of git://github.com/paulholden/moodle 2021-12-22 16:39:42 +01:00
Shamim Rezaie
dacfebedf3 Merge branch 'MDL-73348' of https://github.com/stronk7/moodle 2021-12-22 21:19:52 +11:00
Jun Pataleta
e9bd499fb1 Merge branch 'MDL-72867-master' of https://github.com/HuongNV13/moodle 2021-12-21 11:23:09 +08:00
Andrew Nicols
3a70983d53 MDL-72701 unit tests: Generate default coverage 2021-12-21 09:24:00 +08:00
Andrew Nicols
bb9741d472 MDL-72701 unit tests: Fix broken @covers annotations 2021-12-21 09:24:00 +08:00
Simey Lameze
eadf157068 MDL-72984 admin: make support email setting mandatory 2021-12-20 13:22:35 +08:00
Eloy Lafuente (stronk7)
e4a2d9c1d4 MDL-73348 phpunit: normalize all privacy provider tests
As far as now all them have correct privacy level2 namespace:
- Move them to "privacy" subdir.
- Rename the files to "provider_test.php", this includes old
  privacy_test.php and privacy_provider_test.php files
- Rename the testcase to provider_test too (to match file name)

Also, change some relative paths and comments to point to new
locations.
2021-12-17 14:21:02 +01:00