104171 Commits

Author SHA1 Message Date
Michael Hawkins
a0b3cf4898 MDL-73935 user: Update support form to not require SMTP setting 2022-02-28 12:42:47 +08:00
Ilya Tregubov
9cd77c4130 on-demand release 4.0dev+ 2022-02-25 19:24:12 +02:00
Ilya Tregubov
d31649b250 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2022-02-25 19:24:08 +02:00
Jun Pataleta
266589f13d Merge branch 'MDL-73335-fix' of https://github.com/ilyatregubov/moodle 2022-02-25 22:20:18 +08:00
Ilya Tregubov
0291ea4dd0 MDL-73335 Behat: Fix Classic test. 2022-02-25 11:59:36 +02:00
Andrew Nicols
649705874d Merge branch 'MDL-70792-master-2' of https://github.com/junpataleta/moodle 2022-02-25 11:39:55 +08:00
Andrew Nicols
195321a377 Merge branch 'MDL-73335-integration-master' of https://github.com/mihailges/moodle 2022-02-25 11:27:59 +08:00
Andrew Nicols
641240ce63 Merge branch 'MDL-72837-master' of https://github.com/sammarshallou/moodle 2022-02-25 10:59:54 +08:00
Andrew Nicols
faa6c74404 Merge branch 'MDL-73547-master-v03' of https://github.com/ferranrecio/moodle 2022-02-25 10:55:20 +08:00
Mihail Geshoski
8f6c052717 MDL-73335 mod_quiz: Fix behat tests 2022-02-25 02:34:34 +08:00
sam marshall
02bb326314 MDL-72837 core_cache: Use versioned cache for modinfo
Uses the new versioned cache feature for modinfo, which should make it
safe as a localisable cache.
2022-02-24 13:51:07 +00: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
13cdef5dc4 MDL-70792 output: Menu items should have -1 tab index
* As per WAI ARIA Authoring Practices 1.1 guidelines for menus,
menu items should have a tab index of -1. Navigation between menu items
is done via arrow keys.

See https://www.w3.org/TR/wai-aria-practices-1.1/#menu
2022-02-24 18:21:12 +08:00
Jun Pataleta
122b0fc91e MDL-70792 aria: Dropdown menu keyboard interaction fixes
* Move the focus to the last menu item when the menu is displayed by
pressing the Up arrow key.
* When the menu is open and Tab/Shift-Tab is pressed, focus on the
next/previous focusable element on the DOM instead of focusing back on
the menu trigger.
* Combine event handling for the dropdown menu trigger.
2022-02-24 18:21:12 +08: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
Tim Hunt
2f9032a198 MDL-73335 quiz/questions: fix Behat fails from nav changes
The Classic quiz behat override is no longer needed.
The way it is implemented is Boost/core works in all cases.
2022-02-24 09:26:29 +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
Sujith Haridasan
3458d159e1 MDL-73335 mod_quiz: Add tertiary nav for the quiz module
The tertiary navigation added for quiz module.

- Added tertiary nav buttons for the edit, attempt and view page
- urlselector is added to the overrides page to access user/groups
- The secondary tabs are highlighted when user navigates to
  each page in quiz.
- Updated the behat 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.
2022-02-24 09:26:00 +02:00
Jake Dallimore
f167418fc9 Merge branch 'MDL-73683-master' of https://github.com/ferranrecio/moodle 2022-02-24 14:26:53 +08:00
AMOS bot
ddcb531414 Automatically generated installer lang files 2022-02-24 00:07:39 +00:00
sam marshall
8a0f706033 MDL-72837 core_cache: Add versioned cache support
Adds new set_versioned and get_versioned APIs to cache, which means you can
request a specific version from cache and it will not return an outdated
version.

This is important when using multi-layer-caches where a local cache might have
an outdated version of the cache, but the shared cache has a current version.
With this feature, the content of the cache does not have to be rebuilt, as
it will automatically retrieve it from the shared cache if necessary.
2022-02-23 16:58:38 +00:00
sam marshall
97778526cc MDL-72837 core_cache: Remove duplicated code in cache_session
I checked using a diff tool and the difference between 'get' in cache
and cache_session is only:

a) cache_session: call to check_tracked_user at the start
b) cache: Includes code to use static acceleration (but this would
   not run anyway in cache_session because use_static_acceleration
   returns false)
c) cache: $setaftervalidation logic is used so that it sets it slightly
   later (I can't see how this would make any difference)
d) cache_session: uses functions eg get_store() instead of variables
   $store; those functions aren't overridden.

This seems like a ridiculous duplication of very complicated code, so
I'm going to remove the duplication before I change it.
2022-02-23 16:40:35 +00:00
sam marshall
416e0bc27f MDL-72837 core_availability: Fix minor problem with test script
The test script did not correctly rebuild course cache after changing a
cached value in database. While this did not cause failures in the past,
it will after upcoming changes.
2022-02-23 16:38:37 +00:00
sam marshall
691c5b8326 MDL-72837 core_cache: Rename unit test classes to new standard
For the three unit tests that are going to be modified in future
commit, I first changed them to use a namespace and class name
matching filename, as per current standard.
2022-02-23 16:36:40 +00:00
Sara Arjona
43dbb87ce3 Merge branch 'MDL-73355-master-3' of git://github.com/mihailges/moodle 2022-02-23 15:58:56 +01:00
Mihail Geshoski
cbf74374c4 MDL-73355 mod_book: Update the zero state view
Updates the zero state view (when there is no content yet) in
the book activity and also fixes the highlighting of the active
item in the secondary navigation menu in the 'Add new chapter'
page.
2022-02-23 21:44:08 +08:00
Mihail Geshoski
cb802c269d MDL-73355 navigation: Do not always mark selected dropdown item active
Avoids always marking a selected dropdown item as active. When the
dropdown item has attribute data-disableactive="true" the active
classes will not be applied to this element. This is sometimes requred,
especially in the primary/secondary navigation more dropdown menu when
the dropdown item is an action link which opens a new page. Setting
this item as active will falsely indicate that the user is currently on
this page.
2022-02-23 21:44:08 +08:00
Mihail Geshoski
9cf11cdc67 MDL-73355 core: Add support for action links in core/moremenu_children 2022-02-23 21:44:08 +08:00
Mihail Geshoski
f0dffddaac MDL-73355 navigation: Add new methods in navigation_node
Adds new methods is_action_link() and action_link_actions() in the
navigation_node class. The is_action_link() method can be used to
check whether the node's action is of type action_link. The
action_link_actions() method returns the formatted data required
for the core/actions template if the navigation node has an action
link.
2022-02-23 21:44:08 +08:00
Mihail Geshoski
57125bd86a MDL-73355 output: Set the id when initializing the action_link object 2022-02-23 21:44:08 +08:00
Sara Arjona
67df769b6b Merge branch 'MDL-73415-master' of https://github.com/sharidas/moodle 2022-02-23 08:45:39 +01:00
Mathew May
0360bc2ab3 MDL-70792 aria: Only set focus on items when triggered by keypress 2022-02-23 12:01:13 +08: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
Andrew Nicols
4ce17e604c MDL-73915 js: Upgrade packages 2022-02-23 08:51:54 +08:00
Andrew Nicols
ef74e31086 MDL-73915 js: Switch to nodejs lts/gallium 2022-02-23 08:51:54 +08:00
Andrew Nicols
1d1b3d1842 MDL-73915 js: Upgrade node-sass 2022-02-23 08:51:53 +08:00
Peter Dias
3139741a43 MDL-73743 navigation: Update primary set_active_node
Account for the situation where we are in the site course and viewing course type options.
2022-02-23 08:03:22 +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)
9af1613441 Merge branch 'MDL-73450-MASTER_auroramysql_fix' of https://github.com/Limekiller/moodle 2022-02-22 19:40:20 +01:00
Sujith Haridasan
e6a4eb3c36 MDL-73415 mod_forum: Address the followup issues for forum
This issue is a followup for changes made in forum. And hence
addresses the following issues spotted for forum:
1. Bring back the "Forums" header in the search page.
2. Remove the stale function forum_update_subscriptions_button
3. Fix the redirection to activity tab when subscription is
   changed, in the subscription tab.
2022-02-22 21:57:21 +05:30
Eloy Lafuente (stronk7)
ea403ad70d Merge branch 'master_MDL-73778-oracle-behat-fix' of https://github.com/catalyst/moodle-MDL-70329 2022-02-22 17:23:27 +01:00
Sara Arjona
e94167174a on-demand release 4.0dev+ 2022-02-22 11:13:12 +01:00
Sara Arjona
325c6683d2 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2022-02-22 11:13:08 +01:00
Jun Pataleta
f619837c9a Merge branch 'MDL-73613-master' of git://github.com/mickhawkins/moodle 2022-02-22 12:25:28 +08:00
Safat Shahin
83e6b3d8d8 MDL-73778 mod_quiz: Oracle Manual grading scenario
This change will resolve Manual grading settings are
remembered as user preferences - failed behat test in
oracle.
2022-02-22 11:34:37 +11:00
Víctor Déniz
774a0a06b6 Merge branch 'MDL-73192' of https://github.com/call-learning/moodle 2022-02-21 23:53:11 +00:00
Eloy Lafuente (stronk7)
85b955e2a1 Merge branch 'MDL-73882-master' of https://github.com/aanabit/moodle 2022-02-22 00:08:33 +01:00