30972 Commits

Author SHA1 Message Date
Sara Arjona
c5707a934d
Merge branch 'MDL-79350-401' of https://github.com/daledavies/moodle into MOODLE_401_STABLE 2023-09-28 07:48:06 +02:00
Ilya Tregubov
8e5eda32fe
Merge branch 'MDL-79285_401' of https://github.com/stronk7/moodle into MOODLE_401_STABLE 2023-09-28 10:21:09 +08:00
Ilya Tregubov
20e40c3882
Merge branch 'MDL-79360/401' of https://github.com/skodak/moodle into MOODLE_401_STABLE 2023-09-28 09:38:20 +08:00
Shamim Rezaie
ae0cdf3b67 Merge branch 'MDL-78239-401' of https://github.com/HuongNV13/moodle into MOODLE_401_STABLE 2023-09-27 14:41:23 +10:00
Huong Nguyen
a76f40c81b
Merge branch 'MDL-79467-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-27 10:45:07 +07:00
Eloy Lafuente (stronk7)
68a2dd57ef
MDL-79285 xhprof: Add support for optional "reducedata" parameter
This new parameter / property will decide if we want to reduce
the run data before processing it:
- By default it will be disabled in table mode.
- By default it will be enabled in graph mode.
- The defaults can be changed by adding reducedata=[0|1] in the URLs
- Once data reduction is enabled, it stays enabled while
  navigating within the xhprof reports.
2023-09-26 19:40:07 +02:00
Eloy Lafuente (stronk7)
c841064432
MDL-79285 xhprof: Cover the new functions with unit tests
This covers the 2 new functions with unit tests:
- xhprof_topo_sort()
- reduce_run_data()

Note that the example graph used in the provider is the
one shown in the issue to explain the reduction procedure.
2023-09-26 19:40:06 +02:00
Eloy Lafuente (stronk7)
f82ca155ac
MDL-79285 xhprof: Enable reducing runs data for quicker use
Here we are reducing the xhprof runs data by removing the
__Mustache==>__Mustache calls and all the orphaned data.

To save N iterations what we are doing is:

0. The information is "topologically" sorted, so we ensure that
   all the parents in the data are processed before the children.
   (this will help a lot when cleaning orphaned data, see below).
1. First pass, all the candidate (by regexp) calls are removed
   from the run data.
2. Second pass, all the orphaned information (calls that have
   ended losing his parent) are also removed, so data is consistent.
   Note that, normally we would need N passes to remove all the
   orphaned data (because each pass creates new orphan candidates),
   but, as far as we have ensured that the information is topologically
   sorted (see point 0 above), all this can be done in one unique pass.

TODO:
  - Add unit tests.
  - Enable some system to be able to decide which utilities we
    want to get the data reduced and which ones will continue
    using the complete data. Right now the reduction is being
    applied to all the utilities (both table and graph views).
  - Document the change and, if implemented, the way to select
    between complete/reduced data.
  - Consider adding some caching to speed-up the reduction process
    (some TODOs have been left in the code pointing to the critical
    points).
2023-09-26 19:40:06 +02:00
Sara Arjona
54d446ce43
MDL-77708 docs: Update references from docs.moodle.org/dev 2023-09-26 10:57:33 +02:00
Huong Nguyen
e8d14cde9a
MDL-78239 editor_tiny: Calculate correct height for non-visible editors 2023-09-26 14:57:24 +07:00
Paul Holden
282523b96a
MDL-79467 output: handle empty sitename display during installation.
Causes PHP warnings when null on PHP 8.1.
2023-09-22 14:34:34 +01:00
Ilya Tregubov
0717d4ea0e
Merge branch 'MDL-79341-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-21 14:51:12 +08:00
Jake Dallimore
2a2edcde93
Merge branch 'MDL-79186-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-19 11:12:51 +08:00
Dale Davies
ce1f9ec96a MDL-79350 core: Do not store lang in session when readonly 2023-09-18 14:31:02 +01:00
Petr Skoda
e42eeb62b0 MDL-79360 filter: fix nolink tag regression from MDL-77525 2023-09-15 12:45:02 +02:00
Huong Nguyen
02e7ab212a
Merge branch 'MDL-79283-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-15 17:37:19 +08:00
Huong Nguyen
c2e501e144
Merge branch 'MDL-78728-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-15 17:32:44 +08:00
Paul Holden
00d7ed9518
MDL-79283 core: add title to embedded iframe, for accessibility. 2023-09-14 09:26:32 +01:00
Jun Pataleta
cdb81ef363
Merge branch 'MDL-79181-401' of https://github.com/snake/moodle into MOODLE_401_STABLE 2023-09-14 14:02:29 +08:00
Paul Holden
a3ddbca835
MDL-79341 core: more robust testing of user-agent curl response.
The external test file URL concerns itself only with HTTP_USER_AGENT
matching, not sending response headers, which can differ according to
HTTP protocol in use by the endpoint (1.1 vs 2).

Given the returned response code itself is irrelevant to the testcase,
there's not much benefit to asserting it and risking random failures.
2023-09-13 13:36:28 +01:00
Paul Holden
721b02a270
MDL-79186 task: fix evaluation of 'X/Y' cron field format.
The above syntax is defined as supported by the class, for example the
format '5/10' means:

"At every 10th <unit> from 5 through <max>."

It is analogous to '5-<max>/10'.
2023-09-11 09:22:26 +01:00
Jake Dallimore
35e8d7517f
MDL-79181 core: update LinkedIn OAuth template to use OIDC
The old method (sign in with linkedin) is deprecated:
https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin

This replaces this with the new method:
https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2

This is not entirely OIDC compliant, however. The well known
openid-configuration isn't present at the issuer root and the 'locale'
claim contains an object instead of a string. These are worked around.
2023-09-11 10:42:35 +08:00
Jun Pataleta
9b6ed477f8
MDL-78806 behat: Create a step that for checking the page title
Create a Behat step "the page title should contain ':title'" to check
the page title.
2023-09-10 10:54:18 +08:00
Jun Pataleta
94efef85bb
MDL-78806 behat: More lenient checking of page title
Instead of doing an exact checking of the page title in
\behat_hooks::before_step(), do a more lenient check by checking that
the page title contains the acceptance test's site name.
2023-09-09 21:28:53 +08:00
Jun Pataleta
89e853437b
MDL-78806 core: Add upgrade.txt notes 2023-09-09 08:58:03 +08:00
Jun Pataleta
6664d3ebe6
MDL-78806 admin: Consistent page title during upgrade and install
* Use the page title separator constant when displaying the page title
during upgrade and installation.
* No need to display the site name during install when because it hasn't
been set at this point.
2023-09-09 08:56:50 +08:00
Jun Pataleta
d7cae15e57
MDL-78806 admin: Display the most unique information in the title first
* Page titles should display the most unique information first. For
admin pages it would be useful to display the information that
is unique to the page first before the broader categories that the
page belongs to.
* Also use the new page title separator constant.
2023-09-09 08:56:50 +08:00
Jun Pataleta
49393a1608
MDL-78806 core: Remove redundant site name
MDL-78806 core: Remove redundant site name on page titles

* With the site name now being appended to the page titles, there
is no need to manually append the page titles.
2023-09-09 08:56:50 +08:00
Jun Pataleta
143a3bf38b
MDL-78806 core: Append site name on page title 2023-09-09 08:56:50 +08:00
Andrew Nicols
d7834ce7c3
Merge branch 'MDL-79250-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-09-08 22:22:59 +08:00
Andrew Nicols
426e4043a4
MDL-79264 tiny_equation: Correct debounce method
The debounced method was being called immediately instead of being
debounced.
2023-09-08 22:22:59 +08:00
Andrew Nicols
c28639acd9
Merge branch 'MDL-79264-MOODLE_401_STABLE' of https://github.com/geichelberger/moodle into MOODLE_401_STABLE 2023-09-08 22:22:59 +08:00
Andrew Nicols
54271fa749
Merge branch 'MDL-78917-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-08 22:22:58 +08:00
Jun Pataleta
35209a1d79
Merge branch 'MDL-78795-MOODLE_401_STABLE' of https://github.com/phmemmel/moodle into MOODLE_401_STABLE 2023-09-07 14:17:00 +08:00
Andrew Nicols
ba4393023f
Merge branch 'MDL-79205-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-06 12:52:51 +08:00
Ilya Tregubov
d46c7851ca
Merge branch 'MDL-76459_401' of https://github.com/stronk7/moodle into MOODLE_401_STABLE 2023-09-06 10:03:19 +08:00
Gregor Eichelberger
dadf19ad3f
MDL-79264 tiny: Replace hardcoded contextid
The `contextid` argument of the `tiny_equation_filter` AJAX call is
hardcoded to 1, which causes trouble if the context table does not start
with id 1.

Signed-off-by: Gregor Eichelberger <gregor.eichelberger@tuwien.ac.at>
2023-09-05 13:27:20 +02:00
Paul Holden
b1abcd1f42
MDL-79205 webservice: gracefully handle invalid functions in docs. 2023-09-05 08:51:56 +01:00
Andrew Nicols
0e857d3710
Merge branch 'MDL-79230-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-05 10:56:55 +08:00
Andrew Nicols
a898eb1964
Merge branch 'MDL-79236-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-05 10:44:32 +08:00
Paul Holden
3b2690ef9c
MDL-78728 forms: correctly refer to outermost form element.
Read-only forms do not belong to a <form> element, so we can't refer
to that. Instead find the `.mform` element (which exists for regular
and read-only forms).
2023-09-04 16:43:59 +01:00
Paul Holden
d5dbe92232
Merge branch 'MDL-79232-401' of https://github.com/marinaglancy/moodle into MOODLE_401_STABLE 2023-09-04 11:38:13 +01:00
Jun Pataleta
b7087ee353
MDL-79250 admin: Add title to external_content_banner template 2023-09-04 16:54:16 +08:00
Paul Holden
ed818157bb
MDL-78917 webservice: extra data in exception for missing classpath.
Include the external function classname & methodname properties in
the thrown exception, to aid diagnostic.
2023-09-04 09:03:32 +01:00
Philipp Memmel
7b105cb467 MDL-78795 core_form: Fix repeated elements JS problem
Co-authored-by: Stefan Hanauska <stefan.hanauska@csg-in.de>
2023-09-03 14:12:39 +02:00
Eloy Lafuente (stronk7)
1e3c3ec907
MDL-76459 xmldb: Add environmental check to verify $CFG->prefix
While, right now, sites using long (> 10 chars) $CFG->prefix
can continue working (because we still don't have any table
> 28 chars), as soon as some new table with long name is added,
it won't work with PostgreSQL anymore (if the 63 limit is raised).

Hence, this environmental check will verify on both install and
upgrade that the $CFG->prefix is always <= 10 chars.

Sites with longer prefixes will need to rename all their tables
(and maybe other objects, depending on the dbtype) to use a shorter
prefix.
2023-09-02 09:22:28 +02:00
Paul Holden
2cfc22350b
MDL-79236 editor_tiny: define subplugin type language strings. 2023-09-01 19:25:03 +01:00
Paul Holden
5c93b9fa6d
MDL-79230 editor_tiny: fix plugin info manage URL.
Co-authored-by: Meirza <meirza.arson@moodle.com>
2023-09-01 15:19:52 +01:00
Marina Glancy
0ad9a91cf0 MDL-79232 navigation: fix undefined var warning 2023-09-01 14:28:00 +01:00
Ilya Tregubov
d281a2bb43
Merge branch 'MDL-74429-401' of https://github.com/roland04/moodle into MOODLE_401_STABLE 2023-09-01 11:15:51 +08:00