Commit graph

9091 commits

Author SHA1 Message Date
Bas Brands
a31cade872 MDL-74045 theme_boost: set the base layout to drawers 2022-03-02 11:07:45 +01:00
Ilya Tregubov
b4c322fc80 Merge branch 'MDL-73743-master-1' of https://github.com/peterRd/moodle 2022-02-24 13:56:54 +02:00
Jun Pataleta
baf360a7ba Merge branch 'MDL-73915-master-terser' of https://github.com/andrewnicols/moodle 2022-02-24 17:29:17 +08:00
Ilya Tregubov
be7a576994 Merge branch 'MDL-73335-tim' of https://github.com/ilyatregubov/moodle 2022-02-24 09:43:59 +02:00
Sujith Haridasan
b610055bbd MDL-73335 question: Add the tertiary nav for question bank
The tertiary navigation has been added to the question bank.
- Url selector has been added for the pages:
  Questions, Categories, Import and Export
- A separate page to "Add category" has been added.
  The "Add category" is available as a tertiary nav button.
- Updated the tests for the changes made.

This commit is mostly Sujith's work, with further changes by
Tim Hunt <T.J.Hunt@open.ac.uk> so we share the blame/credit.

AMOS BEGIN
 CPY [questioncats,mod_quiz],[questioncategories,core_question]
AMOS END
2022-02-24 09:26:29 +02:00
Andrew Nicols
e1b9d5f3cd MDL-73915 js: Drop support for IE and android
Moodle announced that support for IE would be dropped back in August
2020 with Moodle 3.9 but not active steps were taken at that time. That
decision was made in MDLSITE-6109 and this particular step was meant to
be taken in Moodle 3.10.

This is the first step taken to actively drop support for IE.

This commit also bumps the browser support pattern from 0.25% to 0.3%.
The percentage here includes any browser where at least this percentage
of users worldwide may be using a browser. In this case it causes
support for Android 4.3-4.4 to be dropped, which relate to Android
KitKat (released 2013).

This combination of changes means that all of the supported browsers in
our compatibility list support modern features including async,
for...of, classes, native Promises, and more which has a huge impact on
the ease of debugging code, and drastically reduces the minified file
size because a number of native Polyfills included by Babel are no
longer included.
2022-02-23 08:55:20 +08:00
Andrew Nicols
0a4047ab31 MDL-73915 js: Switch amd minification to terser
Unfortunately the babel minify-mangle plugin seems to be abandoned and
in certain circumstances can be very buggy. The only safe options are to
disable it, or to switch to a different minification library.

Not minifying our javascript is not ideal, so this commit updates the
javascript tasks to use a rollup, combined with babel, and terser.

Babel still converts code from ES/UMD/AMD to AMD modules with the
relevant browser support, whilst terser minifies the code.

The rollup bundler handles tracking and creation of sourcemaps, and
supports better parallelisation of the tasks.

Since the upgrade to Node LTS/Gallium requires an upgrade to @babel/core
and eslint, which change the built files anyway, this seems like the
ideal time to make this change.
2022-02-23 08:55:09 +08:00
Andrew Nicols
aa7f7957ea MDL-73915 js: Upgrade babel and eslint 2022-02-23 08:53:54 +08:00
Mathew May
25699339d9 MDL-73743 navigation: Add more nav nodes to site home 2022-02-23 08:03:22 +08:00
Eloy Lafuente (stronk7)
0753d96232 Merge branch 'MDL-73910-master' of https://github.com/sarjona/moodle 2022-02-22 00:06:53 +01:00
Sara Arjona
2a241f9e06 Merge branch 'MDL-73872-master' of https://github.com/lucaboesch/moodle 2022-02-21 16:32:01 +01:00
Sara Arjona
995b457dbf MDL-73910 repository: Override get_enabled_plugin() method
The get_enabled_plugin method in repository plugininfo needs to
be overriden from base because current implementation is ignoring
the visible column in the "repository" table.
2022-02-21 09:24:51 +01:00
Luca Bösch
2894aa0964 MDL-73872 admin: align 'Save changes' and 'Cancel' 2022-02-18 18:37:08 +01:00
Víctor Déniz
efdd77a157 MDL-73812 lang: Replace modified strings in tests 2022-02-18 16:14:02 +00:00
Helen Foster
7ff6b2daef MDL-73812 lang: Import fixed English strings (en_fix) 2022-02-18 15:50:26 +00:00
Jun Pataleta
5f19e1e685 Merge branch 'MDL-73608-master' of https://github.com/lameze/moodle 2022-02-18 12:06:13 +08:00
Andrew Nicols
f66210dece Merge branch 'MDL-72734' of https://github.com/paulholden/moodle 2022-02-18 10:55:48 +08:00
Ilya Tregubov
e1899a86c3 MDL-73875 behat: Increase allowed size for privacy exports
Because of more moodle.css contents, the total size of the privacy
exports has grown over the allowed size. Just raise it a little bit
more.
2022-02-17 15:43:31 +02:00
Ilya Tregubov
dfa0681c53 Merge branch 'MDL-69764-master' of https://github.com/jpahullo/moodle 2022-02-17 15:02:01 +02:00
Jordi Pujol Ahulló
21f73b29c1 MDL-69764 tool_task: unify crontab verification
Use scheduled_task crontab field verification in
admin/tool/task to unify how Moodle deals with
crontab definition and its verification.
This helps remove duplicated code and fix
crontab definition not allowed in the web form,
but actually was valid.

Updated crontab fields precision on task_scheduled
table to have enough room for the worst case:
all possible different values separated by comma.
2022-02-17 13:24:31 +01:00
Juan Leyva
f0816126bf MDL-73608 tool_mobile: Return support page for not logged-in users 2022-02-17 19:48:30 +08:00
Jun Pataleta
a7af5f3ae9 Merge branch 'MDL-73592-master' of git://github.com/rezaies/moodle 2022-02-17 16:06:38 +08:00
Shamim Rezaie
b36a1f9ee0 MDL-73592 tool_moodlenet: Use adhoc task to set activitychooser footer 2022-02-17 18:18:30 +11:00
Jun Pataleta
6b65550240 Merge branch 'MDL-73373-master' of https://github.com/peterRd/moodle 2022-02-16 21:14:26 +08:00
Jun Pataleta
ed3d0904ff Merge branch 'MDL-73248-master' of https://github.com/sarjona/moodle 2022-02-16 21:09:52 +08:00
Shamim Rezaie
2361e4c9c5 MDL-73592 tool_moodlenet: Enable moodlenet by default 2022-02-16 16:09:28 +11:00
Paul Holden
a6b13214a9 MDL-72734 tool_task: consistent checks for running tasks from web. 2022-02-14 09:22:01 +00:00
Sara Arjona
256232ad46 MDL-73248 adminpresets: Improvements to the Starter preset
This is the list of changes applied to the Starter preset, following
the community suggestions and the latest features included in 4.0:

- Hide Online users, Recently accessed courses and Starred courses.
- Re-enable Description and Essay question types.
- Disable guest enrolment and hide guest login button.
- Reduce the information displayed in the activity chooser.

Apart from that, the User menu items has been removed because it had
the same value in both presets (so it makes no sense having there).
2022-02-11 16:41:06 +01:00
Jun Pataleta
9af545659c Merge branch 'MDL-72928-rebase' of https://github.com/Chocolate-lightning/moodle 2022-02-11 22:28:11 +11:00
Mathew May
ecb92c7ed9 MDL-72928 login: Update styling and functionality 2022-02-11 12:01:26 +08:00
Jun Pataleta
31a6f70ea1 Merge branch 'MDL-73784-master' of https://github.com/HuongNV13/moodle 2022-02-10 22:56:24 +08:00
Peter Dias
df5425538e MDL-73373 behat: Update behat tests 2022-02-09 16:06:48 +08:00
Eloy Lafuente (stronk7)
a0f8a78f16 MDL-73764 behat: Verify the report works and all files in core are ok 2022-02-08 19:25:03 +01:00
Eloy Lafuente (stronk7)
3bb4a4009c MDL-73764 tool_xmldb: Regenerate all the files detected by the report
Note that, instead of going one by one to them from the XMLDB Editor
(load, makes some tiny change, save, revert the change, save), the
report includes a commented line that, once uncommented, does regenerate
the file while reporting.

I've left it there as a commodity for the developer.
2022-02-08 19:25:03 +01:00
Eloy Lafuente (stronk7)
ebd0f69daa MDL-73764 tool_xmldb: New report to show all xml files needing reconcile
People uses to edit the install.xml files manually, here and there. That
uses to come with small mistakes, like wrong white-space indentation,
some attributes out of order...

While none of them are critical, they add a lot of noise when somebody
is correctly editing a file with the XMLDB Editor because it, correctly,
overwrites the whole file and then diffs show a lot of unrelated changes.

So, this report will inform us about any file needing to be regenerated
because it has been manually edited (in a different way than the way
the editor has).

Note that the report is very basic, with minimal ouput, manually
generating the HTML, like the rest of the XMLDB Editor actions do. We
are not using renderers neither templates here.

Also note that it includes a commented line of code that, once
uncommented, enables the report to, also, fix the wrong files. Useful
for developers.
2022-02-08 19:25:02 +01:00
Peter Dias
81492f900f MDL-73373 roles: Enable tertiary navigation in module context 2022-02-08 09:04:04 +08:00
Eloy Lafuente (stronk7)
c5e2a4ded0 Merge branch 'MDL-73601-master' of https://github.com/aanabit/moodle 2022-02-07 12:01:19 +01:00
Shamim Rezaie
7a1488120e Merge branch 'MDL-73644-master' of https://github.com/lameze/moodle 2022-02-07 16:41:26 +11:00
Simey Lameze
5396814489 MDL-73644 core: link confirm module CL to related JSDoc 2022-02-07 13:26:47 +08:00
Huong Nguyen
02f622c247 MDL-73784 usertours: Update tour steps to use Moodle langstring 2022-02-07 10:57:16 +07:00
Huong Nguyen
4c097bc6c0 MDL-73784 usertours: Support multiple PIXICON placeholder 2022-02-07 10:49:52 +07:00
Huong Nguyen
681df03204 MDL-73784 usertours: Make End tour button's label translatable
We can use the Moodle language format for End tour button's label now
2022-02-07 10:49:51 +07:00
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
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
2a01259d85 MDL-71696 core_question: Fix Oracle GROUP BY error 2022-02-04 18:10:35 +02:00
Eloy Lafuente (stronk7)
a2e4be3620 Merge branch 'MDL-73728-master' of https://github.com/andrewnicols/moodle 2022-02-03 14:59:00 +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
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
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