110157 Commits

Author SHA1 Message Date
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
Dan Marsden
a5ae5e6035 MDL-46279 mod_scorm: Fix updating of scorm values on re-entry to scorm. 2023-07-21 19:45:43 +12:00
Huong Nguyen
4d854e0f90
Merge branch 'MDL-78525-master' of github.com:HuongNV13/moodle 2023-07-21 11:59:10 +08:00
Huong Nguyen
14998e157d
MDL-78525 core: Update upgrade.txt for count_words and count_letters 2023-07-21 11:59:10 +08:00
Ilya Tregubov
2e53b399b3
Merge branch 'MDL-76854-subscription_deleted' of https://github.com/leonstr/moodle 2023-07-21 11:59:09 +08:00
Huong Nguyen
9317d00bfb
Merge branch 'MDL-78525/master' of https://github.com/skodak/moodle 2023-07-21 11:59:09 +08:00
Ilya Tregubov
e55e256fe9
Merge branch 'MDL-75115-master' of https://github.com/meirzamoodle/moodle 2023-07-21 11:59:09 +08:00
Ilya Tregubov
74760c0e8f
Merge branch 'MDL-76710-master' of https://github.com/call-learning/moodle 2023-07-21 11:59:08 +08:00
Andrew Nicols
703acdd148
Merge branch 'MDL-78716' of https://github.com/paulholden/moodle 2023-07-21 11:59:08 +08:00
Andrew Nicols
ec4c6aa486
Merge branch 'MDL-78715' of https://github.com/paulholden/moodle 2023-07-21 11:59:07 +08:00
Andrew Nicols
56fa3ec14c
Merge branch 'MDL-77645' of https://github.com/paulholden/moodle 2023-07-21 11:59:07 +08:00
Andrew Nicols
b701a934ef
Merge branch 'MDL-78719' of https://github.com/paulholden/moodle 2023-07-21 11:59:07 +08:00
Andrew Nicols
0eaafc713c
Merge branch 'MDL-78280-master' of https://github.com/roland04/moodle 2023-07-21 11:59:05 +08:00
Andrew Nicols
ae6cd11da9
Merge branch 'MDL-78503' of https://github.com/paulholden/moodle 2023-07-21 11:58:37 +08:00
Andrew Nicols
754868e462
Merge branch 'MDL-78532' of https://github.com/paulholden/moodle 2023-07-21 11:58:36 +08:00
Andrew Nicols
de919962ea
Merge branch 'MDL-77328-master-fix' of https://github.com/junpataleta/moodle 2023-07-21 11:58:36 +08:00
Andrew Nicols
094f5dbb5b
Merge branch 'MDL-77745_master' of https://github.com/marxjohnson/moodle 2023-07-21 11:58:34 +08:00
Andrew Nicols
b35160fda6
Merge branch 'MDL-78704-master' of https://github.com/rjnl/moodle 2023-07-21 11:57:16 +08:00
Jun Pataleta
26905eeb93
MDL-77328 question: Declare $qbank as a proper view_component property 2023-07-21 11:57:14 +08:00
Jun Pataleta
73259066c4
MDL-77328 qformat_xml: Avoid dynamic declaration for question_answer
Declare qformat_xml::answerfiles and qformat_xml::feedbackfiles instead
of dynamically declaring answerfiles and feedbackfiles for the
question_answer instance when exporting questions and answers to XML
format.
2023-07-21 11:57:14 +08:00
Jun Pataleta
185c14ad1a
MDL-77328 qtype_caclulatedmulti: Use qtype_calculated_answer
The question answers for question type plugins extending
\qtype_calculated now have the type
\qtype_calculated\qtype_calculated_answer. So the answers for test
helper functions make_calculatedmulti_question_singleresponse() and
make_calculatedmulti_question_multiresponse() should also be changed
accordingly.
2023-07-21 11:57:13 +08:00
Jun Pataleta
9119d4513f
MDL-77328 qtype_caclulatedsimple: Use qtype_calculated_answer
The question answers for question type plugins extending
\qtype_calculated now have the type
\qtype_calculated\qtype_calculated_answer. So the answers for
make_calculatedsimple_question_sum() should be changed accordingly.
2023-07-21 11:57:13 +08:00
Jun Pataleta
6ec75e40e0
MDL-77328 qtype_calculated: Add upgrade.txt notes
* Question type plugins that extend qtype_calculated should be made
aware of the changes about the new question_answer type
\qtype_calculated\qtype_calculated_answer.
2023-07-21 11:57:13 +08:00
Jun Pataleta
fa3395bb8b
Merge branch 'MDL-77328-master' of https://github.com/rezaies/moodle 2023-07-21 11:57:12 +08:00
Kevin Percy
ead1e95032 MDL-77975 tool_usertours: Added tour for 4.2 grader report changes 2023-07-20 15:55:12 +08:00
Ferran Recio
6e1fff1a57 MDL-78283 core_courseformat: group mode dropdown 2023-07-19 17:52:00 +02:00
Ferran Recio
b121e998a9 MDL-78283 theme_boost: parent focus css helper 2023-07-19 17:22:35 +02:00
Mikel Martín
530691b1ca MDL-78280 completion: Fix behat for new completion UI
- The following behat step definitions were modified to work correctly both for course page conditions dialog and activity page
condition badges: 'activity_completion_condition_displayed_as', 'overridden_activity_completion_condition_displayed_as'
and 'activity_should_have_the_completion_condition'.
- Because now "Mark as done" manual completion button is not displayed for teachers in course homepage,
some behat steps were also modified.
2023-07-19 16:44:54 +02:00