Commit graph

109898 commits

Author SHA1 Message Date
Stephan Robotta
95f5e32f99 MDL-63759 iplookup: use OSM if Google is not used, use accuracy radius 2023-05-24 08:40:34 +02:00
Andrew Nicols
cb3ea26ae6
Merge branch 'MDL-78016' of https://github.com/stronk7/moodle 2023-05-24 14:32:56 +08:00
David Mudrák
b407af725f MDL-73464 book: Scroll to chapter top when navigating through the book
When navigating to the next / previous chapter, the chapter should be
the page element that gets the user's attention and focus. Its title
should be displayed at the prominent top page area without the need to
scroll to it all the time.
2023-05-24 14:32:45 +08:00
Jun Pataleta
d78de537ff Merge branch 'MDL-78005-master' of https://github.com/davewoloszyn/moodle 2023-05-24 12:06:52 +08:00
Jun Pataleta
6ee1bac7d8 Merge branch 'MDL-78132-master' of https://github.com/sarjona/moodle 2023-05-24 12:04:58 +08:00
Nathan Nguyen
1452caac93 MDL-77353 core: examples of new user function usage 2023-05-24 13:05:13 +10:00
Nathan Nguyen
f897ecd627 MDL-77353 core_user: new functions
New functions:
    * `core_user::get_profile_picture` for retrieving user picture.
    * `core_user::get_profile_url` for retrieving profile url.
    * `core_user::get_fullname` for retrieving user full name.

Note: the context is not used as this stage. It will be used by "User Disguises" plugin, which will be implemented later.
2023-05-24 13:05:02 +10:00
Simey Lameze
42a01d20e3 MDL-75961 behat: review and enhance mod_imscp tests
This commit makes the following improvements to mod_imscp tests:
* Removes unnecessary @javascript and @_file_upload tags from non-JS tests.
* Removes user/enrol data generation from tests that can be performed as admin.
* Removes "I log out" and other unnecessary steps.
2023-05-24 10:27:41 +08:00
Angelia Dela Cruz
deb4e69f74 MDL-75961 behat: IMSCP behat generators use UI
Replace steps that manually add IMSCP instances via the UI and use
Behat generators. This improves the speed of the Behat test runs.
2023-05-24 10:01:17 +08:00
Sara Arjona
8705d4e478 Merge branch 'MDL-78176' of https://github.com/AnupamaSarjoshi/moodle 2023-05-23 17:45:47 +02:00
Sara Arjona
53bd6aaaf8 Merge branch 'MDL-75640' of https://github.com/paulholden/moodle 2023-05-23 17:41:06 +02:00
Sara Arjona
1df51b02f8 Merge branch 'MDL-78242' of https://github.com/paulholden/moodle 2023-05-23 17:36:50 +02:00
Jun Pataleta
b5c0d804f1 Merge branch 'MDL-75512-master' of https://github.com/ilyatregubov/moodle 2023-05-23 20:16:44 +08:00
Andrew Nicols
67ba0d3e83
MDL-74954 core: Detect changes to hook overrides 2023-05-23 16:03:37 +08:00
Jun Pataleta
6823da53f1 Merge branch 'MDL-76688/master' of https://github.com/skodak/moodle 2023-05-23 15:22:19 +08:00
Angelia Dela Cruz
898a6b7c1a MDL-77547 Behat: Coverage to check for bad multichoice questions 2023-05-23 15:14:18 +08:00
Sara Arjona
e7ec8da607 MDL-78132 badges: deprecate functions and strings
When the logic to get the correct apiBase has been moved to the
backpack, some strings and methods have been marked as deprecated.
2023-05-23 08:47:10 +02:00
Andrew Nicols
03e4afdb39 MDL-78132 badges: move apiBase consumption to backpack
The logic to create the issuer has been moved to the backpack form
in order to improve the workflow and update the apiBase with the
proper value comming from the badgeconnect.json manifest file.

So, as part of this change in the workflow, the following changes
has been also implemented (to make the UI easier for users):

- The "Open Badges" oAuth issuer button has been removed from the
"OAuth Services" admin page. As they are created/updated when a backpack
is saved, this button is not required anymore.
- The "OAuth2 services" and "Backpack API URL" parameters have been
removed from the Manage backpacks form, because they are created on
the fly each time the backpack is saved.
2023-05-23 08:46:39 +02:00
Simey Lameze
d9cccadcf2 MDL-76065 behat: Review and enhance mod_lti Behat tests
In this commit, the following improvements were made to the mod_lti Behat tests:

* Replaced manual steps with data generators to set completion.
* Eliminated unnecessary user and course enrolments data generation as some tests can be performed as an admin.
* Removed the @javascript tag from non-JS tests.
* Updated the LTI data generator to generate an internal Moodle URL in the toolurl field, enabling the use of XML files.
2023-05-23 12:11:48 +08:00
Angelia Dela Cruz
dca69e002a MDL-76065 behat: LTI behat generators use UI
Replace steps that manually add LTI instances via the UI and use
Behat generators. This improves the speed of the Behat test runs.
2023-05-23 12:11:48 +08:00
Stevani Andolo
bba2bf5ee6 MDL-76397 lib: Moodle customizations. 2023-05-23 11:14:06 +08:00
Stevani Andolo
ae0ea56f25 MDL-76397 lib: xhprof upgraded to 2.3.9 2023-05-23 11:14:06 +08:00
Andrew Nicols
97300ca692
MDL-76733 mod_assign: Tidy up availability behat tests
This feature had lots of small issues and it made sense to fix it whilst
investigating a query:

* most of the steps do not require JavaScript
* it uses the UI to set an admin setting, for every scenario:
** only 3-4 of the scenarios actually test that setting
** it is very slow to do it his way when we have a generator step we can use
* we create two assignments in the Background, but each test only uses one of them
* we create the assignments in the Background with a generator, but
  update them to modify various settings in each Scenario using the UI
  when we should just create one assignment for each test and set it up
  correctly for that Scenario
2023-05-23 10:53:44 +08:00
Andrew Nicols
7e35c70376
Merge branch 'MDL-78170' of https://github.com/paulholden/moodle 2023-05-23 10:27:28 +08:00
Andrew Nicols
4a2dabc2ad
Merge branch 'MDL-78087-master' of https://github.com/sarjona/moodle 2023-05-23 10:25:48 +08:00
AMOS bot
dbfb0032f9 Automatically generated installer lang files 2023-05-23 00:10:32 +00:00
Paul Holden
3bfb7f759a
MDL-76838 backup: remove invalid utf8 code sequences writing XML.
The surrogate blocks FFFE and FFFF are non-characters, specifically
disallowed in the character range for XML documents.
2023-05-22 21:04:02 +01:00
Paul Holden
283f48f14c
MDL-78322 tool_cohortroles: don't assign roles to deleted users. 2023-05-22 20:14:31 +01:00
Tim Hunt
a3043c3933 MDL-78008 qtype_multianswer: random guess score with missing subqs
Sometimes, due to other bugs, subquestions can get lost, so the code
needs to be robust to this.
2023-05-22 17:01:21 +01:00
Sara Arjona
fabdff8fbd Merge branch 'MDL-78211' of https://github.com/paulholden/moodle 2023-05-22 17:41:37 +02:00
Sara Arjona
35f3790599 Merge branch 'MDL-78226' of https://github.com/paulholden/moodle 2023-05-22 17:29:16 +02:00
Sara Arjona
bccd225c39 MDL-75963 tiny: Bump version to expected number
There was as an error with the previous version number:
"Version (2023031400) cannot be before 20230424 (YYYYMMDD)".
2023-05-22 16:36:01 +02:00
Andrew Nicols
656433d530
MDL-78328 mod_forum: Deprecate forum_print_discussion_header 2023-05-22 22:00:21 +08:00
Andrew Nicols
dea64fa266
MDL-62859 block_online_users: Rewrite visibility changer as ESM 2023-05-22 13:51:39 +01:00
Andrew Nicols
82d7635d52
MDL-62859 block_timeline: Rewrite view navigation as ESM 2023-05-22 13:51:39 +01:00
Paul Holden
c5d1f72dca
MDL-62859 javascript: replace user preference calls with new methods. 2023-05-22 13:51:39 +01:00
Paul Holden
10b6f979c5
MDL-62859 user: export methods for manipulating user preferences in JS. 2023-05-22 13:51:37 +01:00
Andrew Nicols
ea64a11963
MDL-74954 core: Remove failing deprecated hook test for now
This test cannot be made to work while there are no hooks to test.

When we add our first hooks, we can add these tests back and provide a
fake implementation for them in an isolated test run.
2023-05-22 20:04:23 +08:00
Andrew Nicols
91dc4b6501
Merge branch 'MDL-74954-master' of https://github.com/skodak/moodle 2023-05-22 20:03:13 +08:00
Petr Skoda
d57acd957c MDL-74954 core: remove failing hooks test for now 2023-05-22 13:21:53 +02:00
Sara Arjona
aebc13a62d Merge branch 'MDL-75963-master' of https://github.com/meirzamoodle/moodle 2023-05-22 12:15:58 +02:00
Sara Arjona
fa8c3be540 Merge branch 'MDL-78225' of https://github.com/paulholden/moodle 2023-05-22 12:04:07 +02:00
sam marshall
a2af6bd669 MDL-78092 Cache: Modinfo locking with Redis store does not work
The feature added in 4.1 to lock the modinfo cache does not work when
using Redis, because:

* The API to acquire a cache lock is confusing, and the code did not
  check that it successfully acquired a lock before going on to build
  the cache anyway.

* Unlike the other types of cache lock, the Redis store did not retry
  the lock for a timeout period before giving up and failing.

This change fixes both points.
2023-05-22 10:43:14 +01:00
Jun Pataleta
4233e9e61e Merge branch 'MDL-78157-master' of https://github.com/andrewnicols/moodle 2023-05-22 15:29:41 +08:00
Andrew Nicols
9b174fd3cc
MDL-78157 js: Be more careful about inserting missing module names
It is perfectly legitimate to create and/or use a method named `define`
in JS outside of RequireJS.

Unfortunately our requirejs.php wrapper is dumb and does not understand
this.

In the long term we need to stop doing this at all. We really should be
able to already, but every time I try to something prevents it.

In the interim, this change adds a secondary check to see if there is an
existing define which _does_ have the right name in it already.
2023-05-22 14:40:41 +08:00
Jun Pataleta
21b6a7c615 Merge branch 'MDL-78323-master' of https://github.com/andrewnicols/moodle 2023-05-22 14:28:35 +08:00
Andrew Nicols
0aaea71650
MDL-78323 gradereport_grader: Fix jsdoc syntax 2023-05-22 09:23:27 +08:00
Meirza
e95540d9ff MDL-77341 mnet: Added missing class properties
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-20 21:37:01 +07:00
Andrew Nicols
07a1dc04f8 MDL-74954 core: Add hook discovery feature 2023-05-20 11:03:46 +02:00
Petr Skoda
99a7a7c782 MDL-74954 core: add Hooks based on PSR-14 2023-05-20 11:03:46 +02:00