110188 Commits

Author SHA1 Message Date
Paul Holden
3b6fcd1f5b
MDL-78575 mod_lti: remove column alias from inner sub-select.
The `usage` alias is a reserved word in MySQL/MariaDB.
2023-08-01 12:46:18 +01:00
Sara Arjona
84257e4aa3
Merge branch 'MDL-78703' of https://github.com/paulholden/moodle 2023-08-01 13:44:53 +02:00
Paul Holden
c1c000aa15
MDL-71421 core: deprecate openssl fallbacks in encryption library.
Since c66dc591 the PHP Sodium library is required, negating the need
for the OpenSSL equivalent. Remove fallbacks where possible, leaving
only the ability to decrypt legacy OpenSSL-encrypted content (with
debugging).
2023-08-01 12:10:36 +01:00
Sara Arjona
3e4157b21f
Merge branch 'MDL-78430-master-2' of https://github.com/ilyatregubov/moodle 2023-08-01 13:02:47 +02:00
Sara Arjona
8e6c3c0dcb
Merge branch 'MDL-78723-master' of https://github.com/andrewnicols/moodle 2023-08-01 12:07:40 +02:00
danghieu1407
a5af041c40 MDL-78866 question: question_created trigger pre-saving extra fields 2023-08-01 16:01:31 +07:00
Andrew Nicols
01a1210954 MDL-78289 courseformat: Amend behat tests to reduce test overheads 2023-08-01 09:45:47 +02:00
Mikel Martín
8ff60512fb MDL-78289 core_courseformat: New completion dropdown buttons UI
- Update completion dropdown button styles for students depending on activity
overall completion status.
- Add new behat partial named selector 'core_courseformat > Activity completion'
- Add new behat Feature to test activity completion criteria button or dropdown
for students and teachers.
2023-08-01 09:41:21 +02:00
Simey Lameze
4e754bd337 MDL-78498 behat: add support for private replies
This commit adds support for private replies in the
'the following forum replies exist in course' custom step.
2023-08-01 13:39:52 +08:00
Angelia Dela Cruz
ebbe96905a MDL-78498 Behat: Use data generators for forum posts and replies
This commit does few things:
* Replace manual forum posts and replies to use data generator.
* It also changes the code to handle social forums.
* Other behat clean-ups and optimization.

Co-authored-by: Simey Lameze <simey@moodle.com>
2023-08-01 13:39:52 +08:00
Mathew May
b2e1121fc0
MDL-77639 gradebook_setup: Create outcomes via dyn form 2023-08-01 11:34:04 +07:00
Andrew Nicols
30f7e50770
Merge branch 'MDL-78575-master' of https://github.com/snake/moodle 2023-08-01 09:38:15 +08:00
Andrew Nicols
37b27a3853
MDL-78632 core: Update upgrade versions 2023-08-01 09:29:34 +08:00
Andrew Nicols
455db24747
Merge branch 'MDL-78632' of https://github.com/marcusboon/moodle 2023-08-01 09:27:10 +08:00
Sara Arjona
d7dfae00a2
Merge branch 'MDL-45452-course_completion_excel_dates' of https://github.com/leonstr/moodle 2023-07-31 12:47:46 +02:00
Jun Pataleta
43553f5f08
Merge branch 'MDL-76338-master' of https://github.com/junpataleta/moodle 2023-07-31 13:38:16 +08:00
Ilya Tregubov
aa06409241
Merge branch 'master_MDL-62401' of https://github.com/mattporritt/moodle 2023-07-31 12:00:42 +08:00
Jun Pataleta
2f31f35e06
MDL-76338 contentbank: Add copy content capability lang strings 2023-07-31 11:41:34 +08:00
Matt Porritt
04f0448d26 MDL-78571 Media: Allow Vimeo do not track option
Add config option to embed Vimeo links using the "do not track"
Vimeo option. This will block the player from tracking any
session data, including all cookies and analytics.
2023-07-31 12:07:26 +10:00
Matt Porritt
0d0e543007 MDL-78571 Media: Refactor Vimeo media player to use templates.
Use mustache templates for rendering Vimeo embed
iframe code.
2023-07-31 12:05:51 +10:00
Ilya Tregubov
6958389431
Merge branch 'MDL-78043' of https://github.com/Chocolate-lightning/moodle 2023-07-31 08:49:14 +08:00
Daniel Neis Araujo
d124df500c MDL-76338 contentbank: copy content in content bank 2023-07-28 17:05:57 -03:00
Ilya Tregubov
8eb2d5f836
MDL-78430 core_grades: Add Behat tests. 2023-07-28 16:16:21 +08:00
Mihail Geshoski
b5a87c1919
MDL-78430 core_grades: Carry over basic grade item data to advanced form 2023-07-28 16:16:19 +08:00
Jun Pataleta
68a505fddd
Merge branch 'MDL-77975-master' of https://github.com/kevpercy/moodle 2023-07-28 16:02:47 +08:00
Marcus Boon
c22f82d7d5 MDL-78632 filetypes: Introduce yaml file type 2023-07-28 15:26:34 +10:00
Ilya Tregubov
a1d5d1b2f7
weekly release 4.3dev 2023-07-28 10:44:05 +08:00
Ilya Tregubov
4878f53827
NOBUG: Fixed SVG browser compatibility 2023-07-28 10:44:01 +08:00
Mathew May
5e5d3b9f3c MDL-78107 core: Change the manual grade item icon 2023-07-27 16:34:10 +08:00
Jun Pataleta
08a48a9090
Merge branch 'MDL-78283-master' of https://github.com/ferranrecio/moodle 2023-07-27 14:48:15 +08:00
Jun Pataleta
26ba9c7351
Merge branch 'MDL-78282-master' of https://github.com/ferranrecio/moodle 2023-07-27 14:47:14 +08:00
Ilya Tregubov
70174bb754
Merge branch 'MDL-78782-master' of https://github.com/ferranrecio/moodle 2023-07-27 14:47:14 +08:00
Ilya Tregubov
01593b9332
Merge branch 'MDL-46279' of https://github.com/danmarsden/moodle 2023-07-27 14:47:13 +08:00
Ferran Recio
a586e952ff MDL-78282 output: new sr_text renderer method
Some output classes require pre-rendered elements. In some cases, those
elements require some screen reader extra texts (especially in buttons).
The st_text method allow the outputs to create those inline tags without
using html_writer. Furthermore, the current screen reader classes are
based on bootstrap, having them isolated in renderer methods allow
themes to implement alternatives accessibility HTML structures.
2023-07-26 15:44:28 +02:00
Ferran Recio
01e0e56665 MDL-78282 core_courseformat: interactive visibility badges 2023-07-26 15:44:28 +02:00
Ferran Recio
b2b1915e25 MDL-78282 core_courseformat: add non-ajax cm actions translation 2023-07-26 15:44:28 +02:00
Ferran Recio
965d556b6b MDL-78782 behat: optimize with editing mode step
The current I am on course homepage with editing mode loads twice the
course page. This patch prevents this from happening by going directly
to editmode.php.
2023-07-26 10:44:45 +02:00
Huong Nguyen
21cfb43408
Merge branch 'MDL-78618' of https://github.com/larsbonczek/moodle 2023-07-26 14:21:31 +07:00
Matt Porritt
d0a5e3fb39 MDL-62401 Media: Embed Youtube Videos with nocookie extension
Add config option to embed YouTube links using the youtube-nocookie.com
YouTube domain. This will stop extra YouTube cookies from being added
to the users computer it also stops calls to certain add tracking sites.
2023-07-26 15:57:05 +10:00
Matt Porritt
6d38972cbc MDL-62401 Media: Embed Youtube Videos with nocookie extension
Refactor YouTube media player to use templates.
Use mustache templates for rendering YouTube embed
iframe code.
2023-07-26 15:54:29 +10:00
Jun Pataleta
b12e77119e
Merge branch 'MDL-78377' of https://github.com/paulholden/moodle 2023-07-26 10:47:41 +08:00
Jun Pataleta
d8bfb8ff3c
Merge branch 'MDL-70135' of https://github.com/paulholden/moodle 2023-07-26 10:45:55 +08:00
Ilya Tregubov
c7529aaee0
Merge branch 'MDL-44190-master' of https://github.com/HuongNV13/moodle 2023-07-26 09:48:18 +08:00
Jun Pataleta
8438a7d03b
Merge branch 'MDL-77638-master' of https://github.com/ilyatregubov/moodle 2023-07-25 17:56:59 +08:00
Ilya Tregubov
1d3f4d631d
MDL-77638 grade: Create add/edit grade category modal. 2023-07-25 17:05:41 +08:00
Andrew Nicols
f067d6004f
MDL-78723 communication_matrix: Address issues with user manager
This commit addresses a number of issues with the Matrix user manager.
These are, unfortunately, tough to break out into smaller commits.

The following issues are addressed:

Matrix usernames should be kept intact in the profile field. Prior to
this change, usernames were mangled and the hostname removed entirely.
Instead the hostname was added back when it is used. This approach is
not suited to a case where a user inserts their own matrix username on a
federated server.

Unit tests should have the minimum of requirements and dependencies.
Prior to this change, unit tests were setting up an entire mock system
which was completely unnecessary. These unit tests should only test the
static methods that they claim to test, not the entire communication
subsystem, matrix API, matrix client, processors, and providers.

Matrix host names should not be curtailed. Prior to this change the
hostname of the matrix server was modified if it contained any .
characters. For example, the following changes were previously made:

| hostname           | before  | after              |
| ------------------ | ------- | ------------------ |
| matrix.example.com | matrix  | matrix.example.com |
| www.example.com    | example | example.com        |

I believe that the original intent was to strip the www from the front,
but this is not documented anywhere that I have found. In any case, the
username should be the completed and fully-qualified username.

Many of the methods were poorly named:
- `set_qualified_matrix_user_id` is actually a userid formatter.
  This has been replaced with `get_formatted_matrix_userid`.
- `set_matrix_home_server` is actually a hostname formatter.
  This has been replaced with `get_formatted_matrix_home_server`.
- `add_user_matrix_id_to_moodle` sets the matrix userid for a moodle
  user, it does not add more than one.
  This has been replaced with `set_matrix_userid_in_moodle`.

The `set_qualified_matrix_user_id` method was silently returning with a
false value if the profile custom field did not exist, but the
`get_matrixid_from_moodle` method was creating the profile custom field
in the same situation. These have been swapped so a set operation will
create the field if it does not exist, but a get operation will not.
2023-07-24 10:35:52 +08:00
Leon Stringer
d2a563e79b MDL-45452 report_completion: Excel date format
When using either of the CSV download links (spreadsheet format or Excel-
compatible format) use an Excel-compatible format for date/times.

Co-Authored-By: Ray Morris <Ray.Morris@teex.tamu.edu>
2023-07-21 15:03:48 +01:00
Huong Nguyen
b4cd63746a
weekly release 4.3dev 2023-07-21 20:56:24 +07:00
Huong Nguyen
fe43dbd421
NOBUG: Fixed SVG browser compatibility 2023-07-21 20:56:23 +07:00
Huong Nguyen
0b5e6c2314
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-07-21 20:56:21 +07:00